async def METHOD_NAME(self):
    database_id = str(uuid.uuid4())
    container_id = str(uuid.uuid4())
    partition_key = PartitionKey(path="/id")
    created_database = await self.client.create_database(id=database_id)
    created_container = await created_database.create_container(id=container_id, partition_key=partition_key)
    # Define errors returned by checks
    illegal_chars_string = 'Id contains illegal chars.'
    space_chars_string = 'Id ends with a space.'
    # Define illegal strings
    illegal_strings = [
        "ID_with_back/slash",
        "ID_\\with_forward_slashes",
        "ID_with_question?_mark",
        "ID_with_#pound",
        "ID_with_tab\t",
        "ID\r_with_return_carriage",
        "ID_with_newline\n",
        "ID_with_trailing_spaces   "
    ]
    # test illegal resource id's for all resources
    error_string = illegal_chars_string
    for resource_id in illegal_strings:
        if resource_id == "ID_with_trailing_spaces   ":
            error_string = space_chars_string
        try:
            await self.client.create_database(resource_id)
            self.fail("Database create should have failed for id {}".format(resource_id))
        except ValueError as e:
            self.assertEquals(str(e), error_string)
        try:
            await created_database.create_container(id=resource_id, partition_key=partition_key)
            self.fail("Container create should have failed for id {}".format(resource_id))
        except ValueError as e:
            self.assertEquals(str(e), error_string)
        try:
            await created_container.create_item({"id": resource_id})
            self.fail("Item create should have failed for id {}".format(resource_id))
        except ValueError as e:
            self.assertEquals(str(e), error_string)
        try:
            await created_container.upsert_item({"id": resource_id})
            self.fail("Item upsert should have failed for id {}".format(resource_id))
        except ValueError as e:
            self.assertEquals(str(e), error_string)