<s> from functional . tests . identity . v2 import test_identity <EOL> class ServiceTests ( test_identity . IdentityTests ) : <EOL> def test_service_create ( self ) : <EOL> self . _create_dummy_service ( ) <EOL> def test_service_delete ( self ) : <EOL> service_name = self . _create_dummy_service ( add_clean_up = False ) <EOL> raw_output = self . openstack ( '<STR_LIT>' % service_name ) <EOL> self . assertEqual ( <NUM_LIT:0> , len ( raw_output ) ) <EOL> def test_service_list ( self ) : <EOL> self . _create_dummy_service ( ) <EOL> raw_output = self . openstack ( '<STR_LIT>' ) <EOL> items = self . parse_listing ( raw_output ) <EOL> self . assert_table_structure ( items , test_identity . BASIC_LIST_HEADERS ) <EOL> def test_service_show ( self ) : <EOL> service_name = self . _create_dummy_service ( ) <EOL> raw_output = self . openstack ( <EOL> '<STR_LIT>' % service_name ) <EOL> items = self . parse_show ( raw_output ) <EOL> self . assert_show_fields ( items , self . SERVICE_FIELDS ) </s>
