def test_creating_new_company_and_saving_it_to_the_database(self): # Test creating a new event object. category = Category.objects.create(name="Software", slug="software") #user = User.objects.create(username="******") country = Country.objects.create(name="America") company = Company() company.name ="Stance Data" company.slug = "stance-data" company.logo = "" #ImageField(blank=True, null=True, storage=gs, upload_to="images/companies_imgs/") company.overview = "" company.value_proposition = "" company.description = "" company.company_status = 2 #= IntegerField(choices=COMPANY_STATUS_CHOICES, blank=True, null=True) company.employee_quantity = 2 #IntegerField(choices=EMPLOYEE_QUANTITY_CHOICES, blank=True, null=True) company.main_phone = "" company.email = "*****@*****.**" company.industries = "" company.technologies = "" company.categories = category #ForeignKey(Category, related_name="Categories", null=True, blank=True) company.applications ="" company.tags = "" company.country = country company.product = "" company.contact = "" # Testing __unicode__ method self.assertEquals(unicode(company.name), 'Stance Data')