diff options
| author | Steven Knight <knight@baldmt.com> | 2002-01-24 20:02:15 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2002-01-24 20:02:15 (GMT) |
| commit | ca75f94e83c37ca03de9740bb141e442c53db235 (patch) | |
| tree | 1b44efda63b16667e62f1ad1b1ae6ade8e5a45b3 /src/engine/SCons/EnvironmentTests.py | |
| parent | 26b3ef1e5b369fd5f31436ecef74ccfc3478d4f5 (diff) | |
| download | SCons-ca75f94e83c37ca03de9740bb141e442c53db235.zip SCons-ca75f94e83c37ca03de9740bb141e442c53db235.tar.gz SCons-ca75f94e83c37ca03de9740bb141e442c53db235.tar.bz2 | |
Add the Precious() method.
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
| -rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index 59f3c78..def5998 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -233,9 +233,6 @@ class EnvironmentTestCase(unittest.TestCase): assert paths == expect, paths for tnode in tgt: assert tnode.builder == InstallBuilder - - def test_InstallAs(self): - pass # XXX def test_Update(self): """Test updating an Environment with new construction variables @@ -269,6 +266,23 @@ class EnvironmentTestCase(unittest.TestCase): assert i.__class__.__name__ == 'File' assert i.path == 'dep.py' + def test_Precious(self): + """Test the Precious() method.""" + env = Environment() + t = env.Precious('a', 'b', ['c', 'd']) + assert t[0].__class__.__name__ == 'File' + assert t[0].path == 'a' + assert t[0].precious + assert t[1].__class__.__name__ == 'File' + assert t[1].path == 'b' + assert t[1].precious + assert t[2].__class__.__name__ == 'File' + assert t[2].path == 'c' + assert t[2].precious + assert t[3].__class__.__name__ == 'File' + assert t[3].path == 'd' + assert t[3].precious + def test_Command(self): """Test the Command() method.""" env = Environment() |
