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