def test_semiotic_square(self): semsq = get_test_semiotic_square() assembler = self.make_assembler() html = assembler.to_html( html_base=HTMLSemioticSquareViz(semsq).get_html(num_terms=6)) if sys.version_info.major == 2: self.assertEqual(type(html), unicode) else: self.assertEqual(type(html), str) self.assertFalse('<!-- EXTRA LIBS -->' in html) # self.assertFalse('<!-- INSERT SEMIOTIC SQUARE -->' in html) self.assertFalse('<!-- INSERT SCRIPT -->' in html) self.assertTrue('Republican' in html)
def test_semiotic_square(self): semsq = get_test_semiotic_square() assembler = self.make_assembler() html = assembler.to_html( html_base=HTMLSemioticSquareViz(semsq).get_html(num_terms=6)) if sys.version_info.major == 2: self.assertEqual(type(html), unicode) else: self.assertEqual(type(html), str) self.assertFalse('<!-- EXTRA LIBS -->' in html) # self.assertFalse('<!-- INSERT SEMIOTIC SQUARE -->' in html) self.assertFalse('<!-- INSERT SCRIPT -->' in html) self.assertTrue('Republican' in html)
def test_get_html(self): semsq = get_test_semiotic_square() html_default = HTMLSemioticSquareViz(semsq).get_html() html_6 = HTMLSemioticSquareViz(semsq).get_html(num_terms=6) self.assertNotEqual(html_default, html_6)
def test_get_html(self): semsq = get_test_semiotic_square() html_default = HTMLSemioticSquareViz(semsq).get_html() html_6 = HTMLSemioticSquareViz(semsq).get_html(num_terms=6) self.assertNotEqual(html_default, html_6)