def METHOD_NAME(self, resource_group, location):
    account_name = self.get_resource_name('pydocumentdbx3')
    if not self.is_playback():
        async_cosmosdb_create = self.client.database_accounts.create_or_update(
            resource_group.name,
            account_name,
            {
                'location': location,
                'locations': [{
                    'location_name': self.region
                }]
            }
        )
        async_cosmosdb_create.wait()
    # Current implementation of msrestazure does not support 404 as a end of LRO delete
    # https://github.com/Azure/msrestazure-for-python/issues/7
    async_delete = self.client.database_accounts.delete(resource_group.name, account_name)
    try:
        async_delete.wait()
    except CloudError as err:
        if err.response.status_code != 404:
            raise