#NEWLINE# def test_add_conflicted_job( self ) : #NEWLINE# #INDENT# job = { #NEWLINE# #INDENT# 'id' : 'job1' , #NEWLINE# 'func' : 'tests.test_views:job1' , #NEWLINE# 'trigger' : 'date' , #NEWLINE# 'run_date' : '2020-12-01T12:30:01+00:00' , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . client . post ( '/scheduler/jobs' , data = json . dumps ( job ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# response = self . client . post ( '/scheduler/jobs' , data = json . dumps ( job ) ) #NEWLINE# self . assertEqual ( response . status_code , 409 )