def test_opens_in_same_window_by_default(self): """Could not figure out how to render this plugin Checking only for the values in the model""" form = LinkForm({'name': 'Linkname', 'url': 'http://www.nonexistant.test'}) link = form.save() self.assertEquals(link.target, '')
def test_open_in_top_window(self): form = LinkForm({ 'name': 'Linkname', 'url': 'http://www.nonexistant.test', 'target': '_top' }) link = form.save() self.assertEquals(link.target, '_top')
def test_open_in_top_window(self): form = LinkForm({'name': 'Linkname', 'url': 'http://www.nonexistant.test', 'target' : '_top'}) link = form.save() self.assertEquals(link.target, '_top')