def METHOD_NAME(self, resource_group, location, server):
    db_name = self.get_resource_name('pyarmdb')
    async_db_create = self.client.databases.create_or_update(
        resource_group.name,
        server.name,
        db_name,
        {
            'location': 'westus2' # location
        }
    )
    database = async_db_create.result() # Wait for completion and return created object
    self.assertEqual(database.name, db_name)
    db = self.client.databases.get(
        resource_group.name,
        server.name,
        db_name
    )
    self.assertEqual(db.name, db_name)
    my_dbs = list(self.client.databases.list_by_server(resource_group.name, server.name))
    print([db.name for db in my_dbs])
    self.assertEqual(len(my_dbs), 2)
    self.assertTrue(any(db.name == 'master' for db in my_dbs))
    self.assertTrue(any(db.name == db_name for db in my_dbs))
    usages = list(self.client.database_usages.list_by_database(resource_group.name, server.name, db_name))
    self.assertTrue(any(usage.name == 'database_size' for usage in usages))
    self.client.databases.delete(resource_group.name, server.name, db_name).wait()