#NEWLINE# def test_invalid_project_id( self ) : #NEWLINE# #INDENT# 'Form requires specification of valid project.' #NEWLINE# data = { #NEWLINE# #INDENT# 'organize_by' : 'week' , #NEWLINE# 'project_1' : 12345 , #NEWLINE# #UNINDENT# } #NEWLINE# response = self . _get ( data = data ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# ( form , report , organize_by , worked , assigned ) = self . _unpack ( response ) #NEWLINE# self . assertEqual ( len ( form . errors ) , 1 ) #NEWLINE# self . assertTrue ( ( 'project' in form . errors ) ) #NEWLINE# self . assertEqual ( len ( report ) , 0 ) #NEWLINE# self . assertEqual ( organize_by , '' ) #NEWLINE# self . assertEqual ( float ( worked ) , 0.0 ) #NEWLINE# self . assertEqual ( float ( assigned ) , 0.0 )