diff options
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
-rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 657f190..e313939 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -473,6 +473,18 @@ class EnvironmentTestCase(unittest.TestCase): assert 'foo1.in' in map(lambda x: x.path, t.sources) assert 'foo2.in' in map(lambda x: x.path, t.sources) + def test_SourceCode(self): + """Test the SourceCode() method.""" + env = Environment() + e = env.SourceCode('foo', None) + s = e.src_builder() + assert s is None, s + + b = Builder() + env.SourceCode(e, b) + s = e.src_builder() + assert s is b, s + def test_SideEffect(self): """Test the SideEffect() method""" env = Environment() |