def test_normal_auth(self): headers = utils.get_headers() expected_headers = { 'plotly-client-platform': 'python {}'.format(version.__version__), 'authorization': 'Basic Zm9vOmJhcg==', 'content-type': 'application/json' } self.assertEqual(headers, expected_headers)
def test_proxy_auth(self): sign_in(self.username, self.api_key, plotly_proxy_authorization=True) headers = utils.get_headers() expected_headers = { 'plotly-client-platform': 'python {}'.format(version.__version__), 'authorization': 'Basic Y25ldDpob29wbGE=', 'plotly-authorization': 'Basic Zm9vOmJhcg==', 'content-type': 'application/json' } self.assertEqual(headers, expected_headers)