#NEWLINE# def test_bad_servicenames( self ) : #NEWLINE# #INDENT# bad = [ '' , '/' , '//' , '///' , '////' , '/////' , 'bad' , 'stillbad' , 'not/better/still' , 'not//better//still' , 'not///better///still' , 'better/' , 'better//' , 'better///' , '/better' , '//better' , '///better' , 'this\\isbad' , '\\' ] #NEWLINE# for x in bad : #NEWLINE# #INDENT# self . assertRaises ( ros_loader . InvalidTypeStringException , ros_loader . get_service_class , self ) #NEWLINE# self . assertRaises ( ros_loader . InvalidTypeStringException , ros_loader . get_service_instance , x ) #NEWLINE# self . assertRaises ( ros_loader . InvalidTypeStringException , ros_loader . get_service_request_instance , x ) #NEWLINE# self . assertRaises ( ros_loader . InvalidTypeStringException , ros_loader . get_service_response_instance , x )