예제 #1
0
 def test_verbose_name_abbreviation(self):
     # if a word is an abbreviation already, don't title case it!
     osd = DogOwner._get_field_title("ownership_start_date")
     self.assertEqual(osd, "OSD")
예제 #2
0
 def test_verbose_name_abbreviation(self):
     # if a word is an abbreviation already, don't title case it!
     osd = DogOwner._get_field_title("ownership_start_date")
     self.assertEqual(osd, "OSD")
예제 #3
0
 def test_get_foreign_key_or_free_text_title(self):
     dog_title = DogOwner._get_field_title("dog")
     self.assertEqual(dog_title, "Dog")
예제 #4
0
 def test_get_foreign_key_or_free_text_title(self):
     dog_title = DogOwner._get_field_title("dog")
     self.assertEqual(dog_title, "Dog")