(self)
| 117 | self.assertRaises(TypeError, shuffle, (1, 2, 3)) |
| 118 | |
| 119 | def test_choice(self): |
| 120 | choice = self.gen.choice |
| 121 | with self.assertRaises(IndexError): |
| 122 | choice([]) |
| 123 | self.assertEqual(choice([50]), 50) |
| 124 | self.assertIn(choice([25, 75]), [25, 75]) |
| 125 | |
| 126 | def test_choice_with_numpy(self): |
| 127 | # Accommodation for NumPy arrays which have disabled __bool__(). |
nothing calls this directly
no test coverage detected