'Test services is properly populated on non empty cluster.'

def test_cluster_get_services(self):

    utils.create_populated_cluster(self.ctxt, 2, name='cluster2')
    (cluster, svcs) = utils.create_populated_cluster(self.ctxt, 3, 1)
    db.service_create(self.ctxt, {'cluster_name': cluster.name, 'deleted': True})
    db_cluster = db.cluster_get(self.ctxt, name=cluster.name, get_services=True)
    self.assertEqual(3, len(db_cluster.services))
    self.assertSetEqual({svc.id for svc in svcs}, {svc.id for svc in db_cluster.services})
