Exemplo n.º 1
0
 def test_model_clean(self):
     site = Site(feed_url="http://cheddr.net")
     site.clean()
     self.assertTrue(site.next_update is not None)
Exemplo n.º 2
0
 def test_string_coercion(self):
     site = Site(feed_url="http://cheddr.net")
     self.assertEqual(str(site), "http://cheddr.net")
     site.title = "Cheddar Reader"
     self.assertEqual(str(site), "Cheddar Reader")