#NEWLINE# def test_creates_project_properties_not_nested( self ) : #NEWLINE# #INDENT# project = { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'title' : self . title , #NEWLINE# 'description' : self . description , #NEWLINE# 'category' : self . category , #NEWLINE# 'public' : False , #NEWLINE# 'type' : 'nodes' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = self . app . post_json_api ( self . url , project , auth = self . user_one . auth , expect_errors = True ) #NEWLINE# assert_equal ( res . status_code , 400 ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'detail' ] , 'Request must include /data/attributes.' ) #NEWLINE# assert_equal ( res . json [ 'errors' ] [ 0 ] [ 'source' ] [ 'pointer' ] , '/data/attributes' )