(self)
| 344 | |
| 345 | class TestGetShape(unittest.TestCase): |
| 346 | def test_get_shape(self): |
| 347 | assert get_shape(2) == () |
| 348 | assert get_shape([]) == (0,) |
| 349 | assert get_shape([[]]) == (1, 0) |
| 350 | assert get_shape([[1, 2]]) == (1, 2) |
| 351 | assert get_shape([[1, 2], (3, 4)]) == (2, 2) |
| 352 | |
| 353 | def test_inhomogeneous_shape(self): |
| 354 | with self.assertRaises(ValueError): get_shape([[], [1]]) |
nothing calls this directly
no test coverage detected