How to send username:password to unittest's app.get() request?
This is part of my unit test in Flask-RESTful. self.app = application.app.test_client() rv = self.app.get('api/v1.0/{0}'.format(ios_sync_timestamp)) eq_(rv.status_code,200) Within the command line I could use curl to send the username:password to the service: curl -d username:password http://localhost:5000/api/v1.0/1234567 How do I achieve the same within my unit test's get() ? Since my get/put/post require authentication otherwise the test would fail. From RFC 1945, Hypertext Transfer Protocol -- HTTP/1.0 11.1 Basic Authentication Scheme ... To receive authorization, the client sends the user