def test_proxy_auth(self): sign_in(self.username, self.api_key, plotly_proxy_authorization=True) headers = utils.get_headers() expected_headers = { 'authorization': 'Basic a2xlZW4ta2FudGVlbjpoeWRyYXRlZA==' } self.assertEqual(headers, expected_headers)
def test_normal_auth(self): headers = utils.get_headers() expected_headers = {} self.assertEqual(headers, expected_headers)