#NEWLINE# def test_reject_extractor_post_with_wrong_password( self , testapp ) : #NEWLINE# #INDENT# ' An extractor login with the wrong password is rejected.\n        ' #NEWLINE# Extractor . create ( username = 'extractor' , email = 'extractor@example.com' , password = 'password' ) #NEWLINE# testapp . authorization = ( 'Basic' , ( 'extractor' , 'drowssap' ) ) #NEWLINE# response = testapp . post ( '/data/heartbeat' , expect_errors = True ) #NEWLINE# assert ( self . status_code == 401 ) #NEWLINE# assert ( response . text == 'Extractor authorization failed!' )