'Build an instance without running any unwanted test methods'

def getApiSampleTestBaseHelper(self):

    ast_instance = api_samples_test_base.ApiSampleTestBase('setUp')
    ast_instance.api_major_version = 'v2'
    ast_instance._project_id = 'True'
    ast_instance.compute = mock.MagicMock()
    ast_instance.subs = ast_instance._get_regexes()
    return ast_instance
