Lines Matching refs:enum
87 enum = enumerate variable in EnumerateTestCase
91 self.assertEqual(type(self.enum(self.seq)), self.enum)
92 e = self.enum(self.seq)
94 self.assertEqual(list(self.enum(self.seq)), self.res)
95 self.enum.__doc__
98 self.check_pickle(self.enum(self.seq), self.res)
101 self.assertEqual(list(self.enum(G(self.seq))), self.res)
102 e = self.enum(G(''))
106 self.assertEqual(list(self.enum(I(self.seq))), self.res)
107 e = self.enum(I(''))
111 self.assertEqual(list(self.enum(Ig(self.seq))), self.res)
112 e = self.enum(Ig(''))
116 self.assertRaises(TypeError, self.enum, X(self.seq))
119 self.assertRaises(TypeError, self.enum, N(self.seq))
122 self.assertRaises(ZeroDivisionError, list, self.enum(E(self.seq)))
125 self.assertRaises(TypeError, self.enum) # no arguments
126 self.assertRaises(TypeError, self.enum, 1) # wrong type (not iterable)
127 self.assertRaises(TypeError, self.enum, 'abc', 'a') # wrong type
128 self.assertRaises(TypeError, self.enum, 'abc', 2, 3) # too many arguments
142 enum = MyEnum variable in SubclassTestCase
250 e = self.enum(self.seq)
252 self.assertEqual(list(self.enum(self.seq)), self.res)
257 enum = lambda self, i: enumerate(i, start=11) member in TestStart
263 enum = lambda self, i: enumerate(i, start=sys.maxsize+1) member in TestLongStart