Example #1
0
 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())
Example #2
0
 def test_not_empty(self):
     country = Country(
         country_code='DE', country_name='Germany', accuracy=100000.0)
     self.assertFalse(country.empty())
Example #3
0
 def test_satisfies_fail(self):
     country = Country()
     self.assertFalse(country.satisfies(Query()))
Example #4
0
 def test_satisfies(self):
     country = Country(
         country_code='DE', country_name='Germany', accuracy=100000.0)
     self.assertTrue(country.satisfies(Query()))