Ejemplo n.º 1
0
    def test_company_repr_3(self):
        """Test __repr__ methond of company class"""

        example3 = Company("id3", "name3", "summary3", "people3",
                           "city3", "finorgs3", "twitter3", "website3", "logo3")

        self.assertEqual(example3.__repr__(), "<Company 'name3'>")
Ejemplo n.º 2
0
    def test_company_repr_1(self):
        """Test __repr__ methond of company class"""

        example1 = Company("id", "name", "summary", "people",
                           "city", "finorgs", "twitter", "website", "logo")

        self.assertEqual(example1.__repr__(), "<Company 'name'>")
Ejemplo n.º 3
0
    def test_company_repr_2(self):
        """Test __repr__ methond of company class"""

        example2 = Company("id1", "Wetpaint",
                           ("Wetpaint is a technology platform company that uses its proprietary"
                            + " state-of-the-art technology and expertise in social media to build"
                            + " and monetize audiences for digital publishers."), "person1",
                           "San Francisco", "Youniversity Ventures", "wetpaint",
                           "http://wetpaint.com", "logo_url")

        self.assertEqual(example2.__repr__(), "<Company 'Wetpaint'>")