Example #1
0
 def test_language_correct(self):
     """
     Tests that the language property is properly set if we pass in a valid language.
     """
     for language in self.valid_languages:
         handle_location = Location(**{"location": self.valid_location})
         handle_location.language = language
         self.assertEqual(handle_location.language, language)
         del handle_location
 def test_language_correct(self):
     """
     Tests that the language property is properly set if we pass in a valid language.
     """
     for language in self.valid_languages:
         handle_location = Location(**{
                                         "location" : self.valid_location
                                         }
                                     )
         handle_location.language = language
         self.assertEqual(handle_location.language, language)
         del handle_location