numpydantic/tests/test_interface/test_dunder.py

11 lines
232 B
Python
Raw Normal View History

"""
Tests for dunder methods on all interfaces
"""
def test_dunder_len(all_interfaces):
"""
Each interface or proxy type should support __len__
"""
assert len(all_interfaces.array) == all_interfaces.array.shape[0]