summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/EnvironmentTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-24 13:44:50 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-24 13:44:50 (GMT)
commit6d2e37c6e4552fc39dc01fd69d0e4dd8d8edf356 (patch)
treefca72d5d4a6b1435be462205524c61b4091a9d22 /src/engine/SCons/EnvironmentTests.py
parent21a368c1a8d22330a27381978984f1c7a33f4db6 (diff)
downloadSCons-6d2e37c6e4552fc39dc01fd69d0e4dd8d8edf356.zip
SCons-6d2e37c6e4552fc39dc01fd69d0e4dd8d8edf356.tar.gz
SCons-6d2e37c6e4552fc39dc01fd69d0e4dd8d8edf356.tar.bz2
Implement the Depends() method.
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
-rw-r--r--src/engine/SCons/EnvironmentTests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py
index 885e365..149ba74 100644
--- a/src/engine/SCons/EnvironmentTests.py
+++ b/src/engine/SCons/EnvironmentTests.py
@@ -120,6 +120,17 @@ class EnvironmentTestCase(unittest.TestCase):
env2 = Environment(AAA = 'a', BBB = 'bbb', CCC = 'c')
assert env1 != env2
+ def test_Depends(self):
+ """Test the explicit Depends method."""
+ env = Environment()
+ t = env.Depends(target='EnvironmentTest.py', dependency='Environment.py')
+ assert t.__class__.__name__ == 'File'
+ assert t.path == 'EnvironmentTest.py'
+ assert len(t.depends) == 1
+ d = t.depends[0]
+ assert d.__class__.__name__ == 'File'
+ assert d.path == 'Environment.py'
+
def test_subst(self):
"""Test substituting construction variables within strings