def test_modify_request(self):
    http_request = atom.http_core.HttpRequest()
    credentials = atom.auth.BasicAuth('Aladdin', 'open sesame')
    self.assert_(credentials.basic_cookie == 'QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
    credentials.modify_request(http_request)
    self.assert_(http_request.headers[
        'Authorization'] == 'Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==')
dataset/ETHPy150Open kuri65536/python-for-android/python-build/python-libs/gdata/tests/atom_tests/auth_test.py/BasicAuthTest.test_modify_request/original