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

        person1 = Person("p:2", "Ben Elowitz", "Ben Elowitz is co-founder and CEO of Wetpaint.",
                         "null", "Wetpaint", "CEO", "elowitz",
                         ("http://s3.amazonaws.com/crunchbase_prod_assets/assets/images/resized/"
                          + "0001/8470/18470v3-max-250x250.jpg"))

        self.assertEqual(person1.__repr__(), "<Person 'Ben Elowitz'>")
Ejemplo n.º 2
0
    def test_person_repr_2(self):
        """Test the representation of an instance of a Person"""

        person2 = Person("id2", "name1", "summary2", "city1",
                         "companies2", "role1", "twitter2", "logo_url1")
        self.assertEqual(person2.__repr__(), "<Person 'name1'>")