()
| 989 | |
| 990 | |
| 991 | def test_is_empty_object_with_shape_only(): |
| 992 | class FakeShape: |
| 993 | def __init__(self, shape): |
| 994 | self.shape = shape |
| 995 | |
| 996 | assert is_empty(FakeShape((0, 5))) is True |
| 997 | assert is_empty(FakeShape((3, 5))) is False |
| 998 | |
| 999 | |
| 1000 | def test_is_empty_fallback_object(): |