def test_target_frame_blank(self): h = Hyperlink(xmlnode=None) h.target_frame = '_blank' self.assertEqual(h.target_frame, '_blank') self.assertEqual(h.get_attr(CN('xlink:show')), 'new')
def test_href(self): h = Hyperlink(xmlnode=None) h.href = 'http://x.html' self.assertEqual(h.href, 'http://x.html')
def test_target_frame(self): h = Hyperlink(xmlnode=None) h.target_frame = 'xtarget' self.assertEqual(h.target_frame, 'xtarget') self.assertEqual(h.get_attr(CN('xlink:show')), 'replace')
def test_name(self): h = Hyperlink(xmlnode=None) h.name = 'test' self.assertEqual(h.name, 'test')
def test_unset_href(self): h = Hyperlink(xmlnode=None) self.assertIsNone(h.href)
def test_unset_name(self): h = Hyperlink(xmlnode=None) self.assertIsNone(h.name)
def test_init(self): h = Hyperlink(xmlnode=None) self.assertIsNotNone(h)
def test_target_frame_blank(self): h = Hyperlink(xmlnode=None) h.target_frame = "_blank" self.assertEqual(h.target_frame, "_blank") self.assertEqual(h.get_attr(CN("xlink:show")), "new")
def test_target_frame(self): h = Hyperlink(xmlnode=None) h.target_frame = "xtarget" self.assertEqual(h.target_frame, "xtarget") self.assertEqual(h.get_attr(CN("xlink:show")), "replace")
def test_name(self): h = Hyperlink(xmlnode=None) h.name = "test" self.assertEqual(h.name, "test")