def test_bad_xml(self):
     form = FeedCreationForm({
         'lifestream': 1,
         'url': 'http://127.0.0.1:8097/feeds/rss/bad_xml.xml',
         'plugin_class_name': '',
     })
     self.assertTrue(form.is_valid())
Exemple #2
0
 def test_bad_xml(self):
     form = FeedCreationForm({
         'lifestream': 1,
         'url': 'http://127.0.0.1:8097/feeds/rss/bad_xml.xml',
         'plugin_class_name': '',
     })
     self.assertTrue(form.is_valid())
 def test_no_title(self):
     form = FeedCreationForm({
         'lifestream': 1,
         'url': 'http://127.0.0.1:8097/feeds/rss/no_title.xml',
         'plugin_class_name': '',
     })
     self.assertTrue(not form.is_valid())
     self.assertTrue('url' in form.errors)
Exemple #4
0
 def test_no_title(self):
     form = FeedCreationForm({
         'lifestream': 1,
         'url': 'http://127.0.0.1:8097/feeds/rss/no_title.xml',
         'plugin_class_name': '',
     })
     self.assertTrue(not form.is_valid())
     self.assertTrue('url' in form.errors)