<s> 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 SecurityGroupDefaultRulesSampleJsonTest ( <EOL> api_sample_base . ApiSampleTestBaseV21 ) : <EOL> ADMIN_API = True <EOL> extension_name = '<STR_LIT>' <EOL> def _get_flags ( self ) : <EOL> f = super ( SecurityGroupDefaultRulesSampleJsonTest , 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_security_group_default_rules_create ( self ) : <EOL> response = self . _do_post ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> { } ) <EOL> self . _verify_response ( '<STR_LIT>' , <EOL> { } , response , <NUM_LIT:200> ) <EOL> def test_security_group_default_rules_list ( self ) : <EOL> self . test_security_group_default_rules_create ( ) <EOL> response = self . _do_get ( '<STR_LIT>' ) <EOL> self . _verify_response ( '<STR_LIT>' , <EOL> { } , response , <NUM_LIT:200> ) <EOL> def test_security_group_default_rules_show ( self ) : <EOL> self . test_security_group_default_rules_create ( ) <EOL> rule_id = '<STR_LIT:1>' <EOL> response = self . _do_get ( '<STR_LIT>' % rule_id ) <EOL> self . _verify_response ( '<STR_LIT>' , <EOL> { } , response , <NUM_LIT:200> ) </s>
