diff options
| author | Steven Knight <knight@baldmt.com> | 2004-08-31 23:29:36 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-08-31 23:29:36 (GMT) |
| commit | e966ff8d4b3581dc6194adfb70718445a0bbb41b (patch) | |
| tree | 8c051b8bc338df7ad051c421387fc5c4413ac8c2 /src/engine/SCons/EnvironmentTests.py | |
| parent | 6ea37f7bb442c511270e5a89cd8fbf801c81e8c2 (diff) | |
| download | SCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.zip SCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.tar.gz SCons-e966ff8d4b3581dc6194adfb70718445a0bbb41b.tar.bz2 | |
Add a SetDefault() method and a kinder, gentler qt.py that uses it. (Christoph Wiedemann)
Diffstat (limited to 'src/engine/SCons/EnvironmentTests.py')
| -rw-r--r-- | src/engine/SCons/EnvironmentTests.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/engine/SCons/EnvironmentTests.py b/src/engine/SCons/EnvironmentTests.py index a6b8645..de09fd7 100644 --- a/src/engine/SCons/EnvironmentTests.py +++ b/src/engine/SCons/EnvironmentTests.py @@ -1580,6 +1580,16 @@ class EnvironmentTestCase(unittest.TestCase): 'PREFIX', 'SUFFIX', 'LIBPREFIX', 'LIBSUFFIX') + def test_SetDefault(self): + """Test the SetDefault method""" + env = Environment(tools = []) + env.SetDefault(V1 = 1) + env.SetDefault(V1 = 2) + assert env['V1'] == 1 + env['V2'] = 2 + env.SetDefault(V2 = 1) + assert env['V2'] == 2 + def test_Tool(self): """Test the Tool() method""" env = Environment(LINK='link', NONE='no-such-tool') |
