Ejemplo n.º 1
0
    def test_city_repr_3(self):
        """Test the representation of an instance of a City"""

        city1 = City("1", "Seattle", "WA", "Seattle", "Wetpaint",
                     "Vulcan Capital", "Mathias Klein")
        self.assertEqual(city1.__repr__(), "<City 'Seattle'>")
Ejemplo n.º 2
0
    def test_city_repr_2(self):
        """Test the representation of an instance of a City"""

        city2 = City("id2", "name1", "state2", "region1",
                     "companies2", "finorgs1", "people2")
        self.assertEqual(city2.__repr__(), "<City 'name1'>")