def testIsValidModel(self): location = self.create_city_location() self.failUnless(location.is_valid_model()) invalid_location = CityLocation(store=self.store) self.failIf(invalid_location.is_valid_model())
def test_is_valid_model(self): location = self.create_city_location() self.assertTrue(location.is_valid_model()) invalid_location = CityLocation(store=self.store) self.assertFalse(invalid_location.is_valid_model())