Beispiel #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)
 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)
Beispiel #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
Beispiel #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
 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