def test_missing_service_name(self):
        response = self.post("/admin/api/v1/service-lists",
                             data={"description": "An exmple service API"})
        self.assertEquals(response.status_code, 400)
        self.assertEquals(response.headers["Content-Type"], "application/json")
Common function for getting the admin permissions from settings
dataset/ETHPy150Open twilio/stashboard/tests/test_service_lists.py/ServiceListTest.test_missing_service_name--crossover with--dataset/ETHPy150Open openstack/django_openstack_auth/openstack_auth/utils.py/get_admin_permissions