def test_model_clean(self): site = Site(feed_url="http://cheddr.net") site.clean() self.assertTrue(site.next_update is not None)
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")