Commits

Greg Malcolm committed bdfbe5a

Removed some confusing tests in about_dictionaries

Comments (0)

Files changed (2)

python2/koans/about_dictionaries.py

         self.assertEqual(__, 'two' in babel_fish.values())
         self.assertEqual(__, 'uno' in babel_fish.keys())
         self.assertEqual(__, 'dos' in babel_fish.values())
-        self.assertEqual(list, babel_fish.keys().__class__)
-        self.assertEqual('dict_keys', babel_fish.keys().__class__.__name__)
-        self.assertEqual(list, babel_fish.values().__class__)
-        self.assertEqual('dict_values', babel_fish.values().__class__.__name__)
 
     def test_making_a_dictionary_from_a_sequence_of_keys(self):
         cards = {}.fromkeys(

python3/koans/about_dictionaries.py

         self.assertEqual(__, 'two' in babel_fish.values())
         self.assertEqual(__, 'uno' in babel_fish.keys())
         self.assertEqual(__, 'dos' in babel_fish.values())
-        self.assertEqual(list, babel_fish.keys().__class__)
-        self.assertEqual('dict_keys', babel_fish.keys().__class__.__name__)
-        self.assertEqual(lis, babel_fish.values().__class__)
-        self.assertEqual('dict_values', babel_fish.values().__class__.__name__)
 
     def test_making_a_dictionary_from_a_sequence_of_keys(self):
         cards = {}.fromkeys(('red warrior', 'green elf', 'blue valkyrie', 'yellow dwarf', 'confused looking zebra'), 42)