def test__invert_dict_2(self): """_invert_dict({ 'x' : 'y' }) should == { 'y' : 'x'}""" self.assertEqual(tested._invert_dict({'x' : 'y'}), { 'y' : 'x'})
def test__invert_dict_3(self): """_invert_dict({ 'v' : 'w', 'x' : 'y' }) should == { 'w' : 'v', 'y' : 'x'}""" self.assertEqual(tested._invert_dict({'v' : 'w', 'x' : 'y'}), { 'w' : 'v', 'y' : 'x'})
def test__invert_dict_1(self): """_invert_dict({}) should == {}""" self.assertEqual(tested._invert_dict({}), {})