'Test cluster_get by subquery field num_hosts.'

def test_cluster_get_by_num_hosts(self):

    (cluster, svcs) = utils.create_populated_cluster(self.ctxt, 3, 2)
    result = db.cluster_get(self.ctxt, num_hosts=3)
    self.assertEqual(cluster.id, result.id)
