示例#1
0
    def test_no_state_unicode(self):
        locate = Location(
            city='Rome',
            country='Italy',
        )

        locate.save()

        self.assertEqual(locate.__str__(), 'Rome, Italy')
示例#2
0
    def test_state_unicode(self):
        locate = Location(
            city='Loveland',
            state='CO',
            country='USA',
        )

        locate.save()

        self.assertEqual(locate.__str__(), 'Loveland, CO')