示例#1
0
 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)
示例#2
0
 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)
示例#3
0
 def test_normal_auth(self):
     headers = utils.get_headers()
     expected_headers = {}
     self.assertEqual(headers, expected_headers)
示例#4
0
 def test_normal_auth(self):
     headers = utils.get_headers()
     expected_headers = {}
     self.assertEqual(headers, expected_headers)