示例#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")