<s> import urllib <EOL> from oslo_config import cfg <EOL> from nova . tests . functional . api_sample_tests import api_sample_base <EOL> CONF = cfg . CONF <EOL> CONF . import_opt ( '<STR_LIT>' , <EOL> '<STR_LIT>' ) <EOL> class InstanceUsageAuditLogJsonTest ( api_sample_base . ApiSampleTestBaseV21 ) : <EOL> ADMIN_API = True <EOL> extension_name = "<STR_LIT>" <EOL> def _get_flags ( self ) : <EOL> f = super ( InstanceUsageAuditLogJsonTest , self ) . _get_flags ( ) <EOL> f [ '<STR_LIT>' ] = CONF . osapi_compute_extension [ : ] <EOL> f [ '<STR_LIT>' ] . append ( '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> return f <EOL> def test_show_instance_usage_audit_log ( self ) : <EOL> response = self . _do_get ( '<STR_LIT>' % <EOL> urllib . quote ( '<STR_LIT>' ) ) <EOL> self . _verify_response ( '<STR_LIT>' , <EOL> { } , response , <NUM_LIT:200> ) <EOL> def test_index_instance_usage_audit_log ( self ) : <EOL> response = self . _do_get ( '<STR_LIT>' ) <EOL> self . _verify_response ( '<STR_LIT>' , <EOL> { } , response , <NUM_LIT:200> ) </s>
