Beispiel #1
0
    def test_company_dictionary_2(self):
        """Test dictionary method of company class"""

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

        self.assertEqual(dict_rep['financial_orgs'], "finorgs")
        self.assertEqual(dict_rep['twitter'], "twitter")
        self.assertEqual(dict_rep['website'], "website")
        self.assertEqual(dict_rep['logo_url'], "logo")
Beispiel #2
0
    def test_company_dictionary_1(self):
        """Test dictionary method of company class"""

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

        self.assertEqual(dict_rep['company_id'], "id")
        self.assertEqual(dict_rep['name'], "name")
        self.assertEqual(dict_rep['summary'], "summary")
        self.assertEqual(dict_rep['people'], "people")
        self.assertEqual(dict_rep['city'], "city")
Beispiel #3
0
    def test_company_dictionary_4(self):
        """Test dictionary method 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")

        dict_rep = example2.dictionary()

        self.assertEqual(dict_rep['financial_orgs'], "Youniversity Ventures")
        self.assertEqual(dict_rep['twitter'], "wetpaint")
        self.assertEqual(dict_rep['website'], "http://wetpaint.com")
        self.assertEqual(dict_rep['logo_url'], "logo_url")