Пример #1
0
 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))
Пример #2
0
 def test_dict_iterators(self):
     assert next(itervalues({1: 2})) == 2
     assert next(iterkeys({1: 2})) == 1
     assert next(iteritems({1: 2})) == (1, 2)
Пример #3
0
 def test_dict_iterators(self):
     assert next(itervalues({1: 2})) == 2
     assert next(iterkeys({1: 2})) == 1
     assert next(iteritems({1: 2})) == (1, 2)
Пример #4
0
 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))