Lines Matching refs:NEI
1259 class NEI(NamedInt, Enum): class
1265 self.assertIs(NEI.__new__, Enum.__new__)
1266 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1268 globals()['NEI'] = NEI
1272 self.assertEqual(NEI.y.value, 2)
1273 test_pickle_dump_load(self.assertIs, NEI.y)
1274 test_pickle_dump_load(self.assertIs, NEI)
1316 class NEI(NamedInt, Enum): class
1322 self.assertIs(NEI.__new__, Enum.__new__)
1323 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1325 globals()['NEI'] = NEI
1329 self.assertEqual(NEI.y.value, 2)
1330 test_pickle_dump_load(self.assertIs, NEI.y)
1331 test_pickle_dump_load(self.assertIs, NEI)
1373 class NEI(NamedInt, Enum): class
1379 self.assertIs(NEI.__new__, Enum.__new__)
1380 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1382 globals()['NEI'] = NEI
1386 self.assertEqual(NEI.y.value, 2)
1387 test_pickle_dump_load(self.assertIs, NEI.y)
1388 test_pickle_dump_load(self.assertIs, NEI)
1430 class NEI(NamedInt, Enum): class
1436 self.assertIs(NEI.__new__, Enum.__new__)
1437 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1439 globals()['NEI'] = NEI
1443 self.assertEqual(NEI.y.value, 2)
1444 test_pickle_dump_load(self.assertIs, NEI.y)
1445 test_pickle_dump_load(self.assertIs, NEI)
1485 class NEI(NamedInt, Enum): class
1490 self.assertIs(NEI.__new__, Enum.__new__)
1491 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1493 globals()['NEI'] = NEI
1496 self.assertEqual(NEI.y.value, 2)
1497 test_pickle_exception(self.assertRaises, TypeError, NEI.x)
1498 test_pickle_exception(self.assertRaises, PicklingError, NEI)
1538 class NEI(NamedInt, Enum): class
1545 self.assertIs(NEI.__new__, Enum.__new__)
1546 self.assertEqual(repr(NEI.x + NEI.y), "NamedInt('(the-x + the-y)', 3)")
1548 globals()['NEI'] = NEI
1551 self.assertEqual(NEI.y.value, 2)
1552 test_pickle_dump_load(self.assertIs, NEI.y)
1553 test_pickle_dump_load(self.assertIs, NEI)