#NEWLINE# @ genty_dataset ( both_arguments_specified = ( { #NEWLINE# #INDENT# 'slave_id' : 1 , #NEWLINE# 'slave_url' : 'raphael.turtles.gov' , #NEWLINE# #UNINDENT# } , ) , neither_argument_specified = ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , ) ) #NEWLINE# def test_get_slave_raises_exception_on_invalid_arguments( self , get_slave_kwargs ) : #NEWLINE# #INDENT# master = ClusterMaster ( ) #NEWLINE# master . connect_slave ( 'raphael.turtles.gov' , 10 ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# master . get_slave ( ** self )