def test_empty(self): country = Country( country_code='DE', country_name='Germany', accuracy=None) self.assertTrue(country.empty()) country = Country( country_code='DE', country_name=None, accuracy=100000.0) self.assertTrue(country.empty()) country = Country( country_code=None, country_name='Germany', accuracy=100000.0) self.assertTrue(country.empty())
def test_not_empty(self): country = Country( country_code='DE', country_name='Germany', accuracy=100000.0) self.assertFalse(country.empty())
def test_satisfies_fail(self): country = Country() self.assertFalse(country.satisfies(Query()))
def test_satisfies(self): country = Country( country_code='DE', country_name='Germany', accuracy=100000.0) self.assertTrue(country.satisfies(Query()))