Beispiel #1
0
def test_structure_template_matches4(shape, expected):
    st = StructureTemplate(1, 2, 7)
    struct = BufferStructure(*shape)
    assert st.matches(struct) == expected
Beispiel #2
0
def test_structure_template_matches3(shape, expected):
    st = StructureTemplate('T', 'B', '...')
    struct = BufferStructure(*shape)
    assert st.matches(struct) == expected
Beispiel #3
0
def test_structure_template_matches1(shape, expected):
    st = StructureTemplate('T', 'B', 1, 3)
    assert st.matches(BufferStructure(*shape)) == expected
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