def test_tokens_to_html_object_with_body_html(self):
     t = Tokens()
     tokens = t.tokenise(html)
     ho = HTMLObject()
     ho.tokens_to_html_object(tokens)
     print("done")
示例#2
0
 def test_get_tag(self):
     t = Tokens()
     h = "hello<head>stuff</head>"
     tag = t.get_tag(h, 5)
     print("")
示例#3
0
 def test_get_string_content(self):
     t = Tokens()
     h = "<head>stuff</head>"
     tag = t.get_string_content(h, 5)
     print("")
     self.assertEqual(("stuff", 6,), tag)
示例#4
0
 def test_tokenise(self):
     t = Tokens()
     tokens = t.tokenise(hhh)
     #tokens = t.tokenise(self.html)
     print("done")