'Test splitting of files'

def test_split_file(self):

    book = get_split_book()
    c = get_container(book)
    name = u'index.html'
    nname = split(c, name, u'//*[@id="page2"]')
    root = c.parsed(nname)
    troot = c.parsed(name)
    self.assertEqual(1, len(root.xpath(u'//*[@id="container"]')), u'Split    point    was    not    adjusted')
    self.assertEqual(0, len(troot.xpath(u'//*[@id="container"]')), u'Split    point    was    not    adjusted')
    self.check_links(c)
