def test_representation(self): """Verify the object representation is not None or an empty string.""" obj = Detail(entry=EntryFactory(), count=0) obj.save() self.assertTrue(unicode(obj))
def test_plumage_is_optional(self): """Verify plumage can be left unset.""" obj = Detail(entry=EntryFactory(), count=0) obj.save() self.assertIsNone(obj.plumage)
def test_direction_is_optional(self): """Verify direction can be left unset.""" obj = Detail(entry=EntryFactory(), count=0) obj.save() self.assertIsNone(obj.direction)
def test_default_longitude(self): """Verify that longitude defaults to an empty string.""" obj = Detail(entry=EntryFactory(), count=0) obj.save() self.assertEqual('', obj.lon)