예제 #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())
예제 #2
0
 def test_not_empty(self):
     country = Country(
         country_code='DE', country_name='Germany', accuracy=100000.0)
     self.assertFalse(country.empty())