예제 #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)