示例#1
0
 def test_len(self):
     variables = {'foo': 'bar', 'quuz': 'blaah'}
     assert_equals(len(_VariableScopes(None, None)), 0)
     assert_equals(len(_VariableScopes(variables, None)),
                   2 + len(GLOBAL_VARIABLES))
     assert_equals(
         len(_VariableScopes(None, _VariableScopes(variables, None))), 0)
示例#2
0
 def test_len(self):
     assert_equals(len(_VariableScopes(None, None)), 0)
     assert_equals(len(_VariableScopes(DummySuite(), None)),
                   2 + len(GLOBAL_VARIABLES))
     assert_equals(
         len(_VariableScopes(None, _VariableScopes(DummySuite(), None))), 0)
 def test_len(self):
     assert_equals(len(_VariableScopes(None, None)), 0)
     assert_equals(len(_VariableScopes(DummySuite(), None)), 2 + len(GLOBAL_VARIABLES))
     assert_equals(len(_VariableScopes(None, _VariableScopes(DummySuite(), None))), 0)
示例#4
0
 def test_len(self):
     variables = {'foo': 'bar', 'quuz': 'blaah'}
     assert_equals(len(_VariableScopes(None, None)), 0)
     assert_equals(len(_VariableScopes(variables, None)), 2 + len(GLOBAL_VARIABLES))
     assert_equals(len(_VariableScopes(None, _VariableScopes(variables, None))), 0)