def test_no_state_unicode(self): locate = Location( city='Rome', country='Italy', ) locate.save() self.assertEqual(locate.__str__(), 'Rome, Italy')
def test_state_unicode(self): locate = Location( city='Loveland', state='CO', country='USA', ) locate.save() self.assertEqual(locate.__str__(), 'Loveland, CO')