def test_dict_iterators(self): self.assertEqual(next(itervalues({1: 2})), 2) self.assertEqual(next(iterkeys({1: 2})), 1) self.assertEqual(next(iteritems({1: 2})), (1, 2))
def test_dict_iterators(self): assert next(itervalues({1: 2})) == 2 assert next(iterkeys({1: 2})) == 1 assert next(iteritems({1: 2})) == (1, 2)