• Home
  • Raw
  • Download

Lines Matching refs:NEI

1280         class NEI(NamedInt, Enum):  class
1286 self.assertIs(NEI.__new__, Enum.__new__)
1287 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1289 globals()['NEI'] = NEI
1293 self.assertEqual(NEI.y.value, 2)
1294 test_pickle_dump_load(self.assertIs, NEI.y)
1295 test_pickle_dump_load(self.assertIs, NEI)
1337 class NEI(NamedInt, Enum): class
1343 self.assertIs(NEI.__new__, Enum.__new__)
1344 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1346 globals()['NEI'] = NEI
1350 self.assertEqual(NEI.y.value, 2)
1351 test_pickle_dump_load(self.assertIs, NEI.y)
1352 test_pickle_dump_load(self.assertIs, NEI)
1394 class NEI(NamedInt, Enum): class
1400 self.assertIs(NEI.__new__, Enum.__new__)
1401 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1403 globals()['NEI'] = NEI
1407 self.assertEqual(NEI.y.value, 2)
1408 test_pickle_dump_load(self.assertIs, NEI.y)
1409 test_pickle_dump_load(self.assertIs, NEI)
1451 class NEI(NamedInt, Enum): class
1457 self.assertIs(NEI.__new__, Enum.__new__)
1458 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1460 globals()['NEI'] = NEI
1464 self.assertEqual(NEI.y.value, 2)
1465 test_pickle_dump_load(self.assertIs, NEI.y)
1466 test_pickle_dump_load(self.assertIs, NEI)
1506 class NEI(NamedInt, Enum): class
1511 self.assertIs(NEI.__new__, Enum.__new__)
1512 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1514 globals()['NEI'] = NEI
1517 self.assertEqual(NEI.y.value, 2)
1518 test_pickle_exception(self.assertRaises, TypeError, NEI.x)
1519 test_pickle_exception(self.assertRaises, PicklingError, NEI)
1559 class NEI(NamedInt, Enum): class
1566 self.assertIs(NEI.__new__, Enum.__new__)
1567 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1569 globals()['NEI'] = NEI
1572 self.assertEqual(NEI.y.value, 2)
1573 test_pickle_dump_load(self.assertIs, NEI.y)
1574 test_pickle_dump_load(self.assertIs, NEI)