def generate_conflicting_plot_options_in_signin():
 def gen_test(plot_options):
  def test(self):
   py.sign_in('username', 'key', **plot_options)
   self.assertRaises(PlotlyError, py._plot_option_logic, {})
  return test
 for (i, plot_options) in enumerate(TestPlotOptionLogic.conflicting_option_set):
  setattr(TestPlotOptionLogic, 'test_conflicting_plot_options_in_signin_{}'.format(i), gen_test(plot_options))

def generate_conflicting_plot_options_in_signin ( ) : def gen_test ( plot_options ) : def test ( self ) : py . sign_in ( 'username' , 'key' , ** plot_options ) self . assertRaises ( PlotlyError , py . _plot_option_logic , { } ) return test for ( i , plot_options ) in enumerate ( TestPlotOptionLogic . conflicting_option_set ) : setattr ( TestPlotOptionLogic , 'test_conflicting_plot_options_in_signin_{}' . format ( i ) , gen_test ( plot_options ) )
sign_in overrides the default plot options .