#NEWLINE# def test_check_schedule_invalid_empty_start_time( self ) : #NEWLINE# #INDENT# fake_schedule = 'R10//PT70S' #NEWLINE# chronos_config = chronos_tools . ChronosJobConfig ( service = '' , cluster = '' , instance = '' , config_dict = { #NEWLINE# #INDENT# 'schedule' : fake_schedule , #NEWLINE# #UNINDENT# } , branch_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# ( okay , msg ) = chronos_config . check_schedule ( ) #NEWLINE# assert ( okay is False ) #NEWLINE# assert ( msg == ( 'The specified schedule "%s" does not contain a start time' % fake_schedule ) )