def test_create(self, data=None, **kwargs):

        response = self.get_create_response(data, **kwargs)

        self.assertEqual(response.status_code, status.HTTP_201_CREATED, getattr(response, 'data', response))

        # another sanity check:
        # getting the instance from database simply to see that it's found and does not raise any exception
        created = self.object.__class__.objects.get(
            **{self.lookup_field: self.get_lookup_from_response(response.data)})

        return response, created
Return objects having aliases with a given key or category or
dataset/ETHPy150Open ydaniv/django-rest-assured/rest_assured/testcases.py/CreateAPITestCaseMixin.test_create--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/typeclasses/managers.py/TypedObjectManager.get_by_alias