def test_simple(self): user = self.create_user(username='******') organization = self.create_organization(owner=user) team = self.create_team(organization=organization) project = self.create_project(teams=[team], organization=organization, name='foo') result = serialize(project, user, ProjectWithOrganizationSerializer()) assert result['slug'] == project.slug assert result['name'] == project.name assert result['id'] == six.text_type(project.id) assert result['organization'] == serialize(organization, user)
def test_simple(self): user = self.create_user(username="******") organization = self.create_organization(owner=user) team = self.create_team(organization=organization) project = self.create_project(teams=[team], organization=organization, name="foo") result = serialize(project, user, ProjectWithOrganizationSerializer()) assert result["slug"] == project.slug assert result["name"] == project.name assert result["id"] == str(project.id) assert result["organization"] == serialize(organization, user)