예제 #1
0
 def test_no_html(self):
     self.addon.the_reason = 'foo'
     self.addon.save()
     last = Addon.objects.get(pk=3615).modified
     convert_purified([self.addon.pk])
     addon = Addon.objects.get(pk=3615)
     eq_(addon.modified, last)
예제 #2
0
 def test_no_html(self):
     self.addon.the_reason = "foo"
     self.addon.save()
     last = Addon.objects.get(pk=3615).modified
     convert_purified([self.addon.pk])
     addon = Addon.objects.get(pk=3615)
     eq_(addon.modified, last)
예제 #3
0
 def test_no_html(self):
     self.addon.the_reason = 'foo'
     self.addon.save()
     last = Addon.objects.get(pk=3615).modified
     convert_purified([self.addon.pk])
     addon = Addon.objects.get(pk=3615)
     assert addon.modified == last
예제 #4
0
 def test_has_html(self):
     self.addon.the_reason = 'foo <script>foo</script>'
     self.addon.save()
     convert_purified([self.addon.pk])
     addon = Addon.objects.get(pk=3615)
     assert addon.the_reason.localized_string_clean
예제 #5
0
 def test_has_html(self):
     self.addon.the_reason = "foo <script>foo</script>"
     self.addon.save()
     convert_purified([self.addon.pk])
     addon = Addon.objects.get(pk=3615)
     assert addon.the_reason.localized_string_clean