def test_structure_template_matches4(shape, expected): st = StructureTemplate(1, 2, 7) struct = BufferStructure(*shape) assert st.matches(struct) == expected
def test_structure_template_matches3(shape, expected): st = StructureTemplate('T', 'B', '...') struct = BufferStructure(*shape) assert st.matches(struct) == expected
def test_structure_template_matches1(shape, expected): st = StructureTemplate('T', 'B', 1, 3) assert st.matches(BufferStructure(*shape)) == expected