#NEWLINE# def test_drop_privileged_with_invalid_params_type( self ) : #NEWLINE# #INDENT# test_params = { #NEWLINE# #INDENT# 'uid' : 'InvalidType' , #NEWLINE# 'gid' : 'InvalidType' , #NEWLINE# #UNINDENT# } #NEWLINE# params = dict ( self . params_default , ** test_params ) #NEWLINE# worker = server_plugins . PluginWorker ( name = 'Hostname' , queue = self . queue , params = params ) #NEWLINE# with pytest . raises ( TypeError ) as exc_info : #NEWLINE# #INDENT# worker . run ( ) #NEWLINE# #UNINDENT# assert ( 'an integer is required' in exc_info . value )