(self)
| 2256 | self.assertRaises(ZeroDivisionError, product, E(s)) |
| 2257 | |
| 2258 | def test_cycle(self): |
| 2259 | for s in ("123", "", range(1000), ('do', 1.2), range(2000,2200,5)): |
| 2260 | for g in (G, I, Ig, S, L, R): |
| 2261 | tgtlen = len(s) * 3 |
| 2262 | expected = list(g(s))*3 |
| 2263 | actual = list(islice(cycle(g(s)), tgtlen)) |
| 2264 | self.assertEqual(actual, expected) |
| 2265 | self.assertRaises(TypeError, cycle, X(s)) |
| 2266 | self.assertRaises(TypeError, cycle, N(s)) |
| 2267 | self.assertRaises(ZeroDivisionError, list, cycle(E(s))) |
| 2268 | |
| 2269 | def test_groupby(self): |
| 2270 | for s in (range(10), range(0), range(1000), (7,11), range(2000,2200,5)): |
nothing calls this directly
no test coverage detected