'Setup test class.'

def setUp(self):

    super(AttachmentManagerTestCase, self).setUp()
    self.manager = importutils.import_object(CONF.volume_manager)
    self.configuration = mock.Mock(conf.Configuration)
    self.context = context.get_admin_context()
    self.context.user_id = fake.USER_ID
    self.project_id = fake.PROJECT3_ID
    self.context.project_id = self.project_id
    self.manager.driver.set_initialized()
    self.manager.stats = {'allocated_capacity_gb': 100, 'pools': {}}
