def test_findall(self, datadir, Manifest):
    datadir.chdir()
    with open('manifest.xml', 'rb') as src:
        xml = src.read()
    tree = fromstring(xml)
    manifest = Manifest.from_tree(tree)
    sheets = manifest.findall(WORKSHEET_TYPE)
    assert (len(list(sheets)) == 1)
def test_findall(self, datadir, Manifest):
    datadir.chdir()
    with open('manifest.xml', 'rb') as src:
        xml = src.read()
    tree = fromstring(xml)
    manifest = Manifest.from_tree(tree)
    sheets = manifest.findall(WORKSHEET_TYPE)
    assert (len(list(sheets)) == 1)