Exemple #1
0
    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, '')
Exemple #2
0
    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, '')
Exemple #3
0
 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')
Exemple #4
0
 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')