'Basic successful cleanup.'

def test_do_cleanup(self):

    vol = utils.create_volume(self.context, status='creating')
    db.worker_create(self.context, status='creating', resource_type='Volume', resource_id=vol.id, service_id=self.service.id)
    clean_req = objects.CleanupRequest(service_id=self.service.id)
    mngr = FakeManager(self.service.id)
    mngr.do_cleanup(self.context, clean_req)
    self.assertListEqual([], db.worker_get_all(self.context))
    vol.refresh()
    self.assertEqual('creating_cleaned', vol.status)
