def test_create_fails_with_wrong_perms(self):
        if self.is_abstract_class:
            return
        mozlogger.info('test_create_fails_with_wrong_perms')

        # get data for creation
        fields = self.new_object_data

        # get user with wrong permissions
        user = self.F.UserFactory.create(permissions=[self.wrong_permissions])
        apikey = self.F.ApiKeyFactory.create(owner=self.user)
        credentials = {"username": user.username, "api_key": apikey.key}

        res = self.post(
            self.get_list_url(self.resource_name),
            params=credentials,
            payload=fields,
            status=401,
            )
Delete an action alias.
dataset/ETHPy150Open mozilla/moztrap/tests/case/api/crud.py/ApiCrudCases.test_create_fails_with_wrong_perms--crossover with--dataset/ETHPy150Open StackStorm/st2/st2api/st2api/controllers/v1/actionalias.py/ActionAliasController.delete