Esempio n. 1
0
 def test_split_file(self):
     " Test splitting of files "
     book = get_split_book()
     c = get_container(book)
     name = "index.html"
     nname = split(c, name, '//*[@id="page2"]')
     root = c.parsed(nname)
     troot = c.parsed(name)
     self.assertEqual(1, len(root.xpath('//*[@id="container"]')), "Split point was not adjusted")
     self.assertEqual(0, len(troot.xpath('//*[@id="container"]')), "Split point was not adjusted")
     self.check_links(c)
Esempio n. 2
0
 def test_split_file(self):
     ' Test splitting of files '
     book = get_split_book()
     c = get_container(book)
     name = 'index.html'
     nname = split(c, name, '//*[@id="page2"]')
     root = c.parsed(nname)
     troot = c.parsed(name)
     self.assertEqual(1, len(root.xpath('//*[@id="container"]')), 'Split point was not adjusted')
     self.assertEqual(0, len(troot.xpath('//*[@id="container"]')), 'Split point was not adjusted')
     self.check_links(c)