'Basic cluster creation test.'

def test_cluster_create_and_get(self):

    values = utils.default_cluster_values()
    cluster = db.cluster_create(self.ctxt, values)
    values['last_heartbeat'] = None
    self.assertEqual(0, cluster.race_preventer)
    for (k, v) in values.items():
        self.assertEqual(v, getattr(cluster, k))
    db_cluster = db.cluster_get(self.ctxt, cluster.id, services_summary=True)
    for (k, v) in values.items():
        self.assertEqual(v, getattr(db_cluster, k))
    self.assertEqual(0, db_cluster.race_preventer)
