'Basic test of get_all with a matching filter.'

def test_cluster_get_all_matches(self):

    (cluster1, svcs) = utils.create_populated_cluster(self.ctxt, 3, 1)
    (cluster2, svcs) = utils.create_populated_cluster(self.ctxt, 3, 2, name='cluster2')
    (cluster3, svcs) = utils.create_populated_cluster(self.ctxt, 3, 3, name='cluster3')
    expected = {cluster1.id, cluster2.id}
    result = db.cluster_get_all(self.ctxt, is_up=True)
    self.assertEqual(len(expected), len(result))
    self.assertSetEqual(expected, {cluster.id for cluster in result})
