#NEWLINE# def test_reject_nonexistent_extractor_post( self , testapp ) : #NEWLINE# #INDENT# " An extractor login that doesn't exist is rejected.\n        " #NEWLINE# testapp . authorization = ( 'Basic' , ( 'extractor' , 'nonexistent' ) ) #NEWLINE# response = testapp . post ( '/data/heartbeat' , expect_errors = True ) #NEWLINE# assert ( response . status_code == 401 ) #NEWLINE# assert ( response . text == 'No extractor with that username!' )