Пример #1
0
 def test__invert_dict_2(self):
     """_invert_dict({ 'x' : 'y' }) should == { 'y' : 'x'}"""
     self.assertEqual(GVars._invert_dict({'x' : 'y'}), { 'y' : 'x'})
Пример #2
0
 def test__invert_dict_3(self):
     """_invert_dict({ 'v' : 'w', 'x' : 'y' }) should == { 'w' : 'v', 'y' : 'x'}"""
     self.assertEqual(GVars._invert_dict({'v' : 'w', 'x' : 'y'}), { 'w' : 'v', 'y' : 'x'})
Пример #3
0
 def test__invert_dict_1(self):
     """_invert_dict({}) should == {}"""
     self.assertEqual(GVars._invert_dict({}), {})