#NEWLINE# def test_creates_public_project_logged_in( self ) : #NEWLINE# #INDENT# res = self . app . post_json_api ( self . url , self . public_project , expect_errors = True , auth = self . user_one . auth ) #NEWLINE# assert_equal ( res . status_code , 201 ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'title' ] , self . public_project [ 'data' ] [ 'attributes' ] [ 'title' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'description' ] , self . public_project [ 'data' ] [ 'attributes' ] [ 'description' ] ) #NEWLINE# assert_equal ( res . json [ 'data' ] [ 'attributes' ] [ 'category' ] , self . public_project [ 'data' ] [ 'attributes' ] [ 'category' ] ) #NEWLINE# assert_equal ( res . content_type , 'application/vnd.api+json' ) #NEWLINE# pid = res . json [ 'data' ] [ 'id' ] #NEWLINE# project = Node . load ( pid ) #NEWLINE# assert_equal ( project . logs [ ( - 1 ) ] . action , NodeLog . PROJECT_CREATED )