Lines Matching refs:reversed
1166 it = reversed(data)
1169 self.assertEqual(list(it), list(reversed(data)))
1179 self.assertEqual(list(it), list(reversed(data)))
1185 itorg = reversed(data.items())
1207 it = reversed(data.values())
1210 self.assertEqual(list(it), list(reversed(data.values())))
1396 r = reversed(d)
1404 self.assertEqual(list(reversed({})), [])
1405 self.assertEqual(list(reversed({}.items())), [])
1406 self.assertEqual(list(reversed({}.values())), [])
1407 self.assertEqual(list(reversed({}.keys())), [])
1410 self.assertEqual(list(reversed(dict())), [])
1411 self.assertEqual(list(reversed(dict().items())), [])
1412 self.assertEqual(list(reversed(dict().values())), [])
1413 self.assertEqual(list(reversed(dict().keys())), [])
1421 self.assertEqual(list(reversed(A(1, 2).__dict__)), ['y', 'x'])
1422 self.assertEqual(list(reversed(A(1, 0).__dict__)), ['x'])
1423 self.assertEqual(list(reversed(A(0, 1).__dict__)), ['y'])
1445 return reversed(list(dict.keys(self)))
1450 return reversed(dict.items(self))
1470 it = reversed({None: []}.items())