Example #1
0
 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')
Example #2
0
 def test_href(self):
     h = Hyperlink(xmlnode=None)
     h.href = 'http://x.html'
     self.assertEqual(h.href, 'http://x.html')
Example #3
0
 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')
Example #4
0
 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')
Example #5
0
 def test_name(self):
     h = Hyperlink(xmlnode=None)
     h.name = 'test'
     self.assertEqual(h.name, 'test')
Example #6
0
 def test_href(self):
     h = Hyperlink(xmlnode=None)
     h.href = 'http://x.html'
     self.assertEqual(h.href, 'http://x.html')
Example #7
0
 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')
Example #8
0
 def test_name(self):
     h = Hyperlink(xmlnode=None)
     h.name = 'test'
     self.assertEqual(h.name, 'test')
Example #9
0
 def test_unset_href(self):
     h = Hyperlink(xmlnode=None)
     self.assertIsNone(h.href)
Example #10
0
 def test_unset_name(self):
     h = Hyperlink(xmlnode=None)
     self.assertIsNone(h.name)
Example #11
0
 def test_init(self):
     h = Hyperlink(xmlnode=None)
     self.assertIsNotNone(h)
Example #12
0
 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")
Example #13
0
 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")
Example #14
0
 def test_name(self):
     h = Hyperlink(xmlnode=None)
     h.name = "test"
     self.assertEqual(h.name, "test")