コード例 #1
0
 def test_full_credentials(self):
     account, api_key = find_credentials()
     self.assertEqual(account, 'APP_ID')
     self.assertEqual(api_key, 'AUTH_TOKEN')
コード例 #2
0
 def test_full_credentials(self):
     account, api_key = find_credentials()
     self.assertEqual(account, 'APP_ID')
     self.assertEqual(api_key,'AUTH_TOKEN')
コード例 #3
0
 def test_partial_credentials(self):
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key, None)
コード例 #4
0
 def test_full_credentials(self):
     """Verify outcome of full credentials sent to client initialization."""
     account, api_key = find_credentials()
     self.assertEqual(account, 'APP_ID')
     self.assertEqual(api_key,'AUTH_TOKEN')
コード例 #5
0
 def test_partial_credentials(self):
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key,None)
コード例 #6
0
 def test_partial_credentials(self):
     """Verify outcome of partial credentials sent to client initialization."""
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key,None)
コード例 #7
0
 def test_no_credentials(self):
     """Verify find_credentials() returns pair of Nones if no env variables."""
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key,None)
コード例 #8
0
 def test_full_credentials(self):
     """Verify outcome of full credentials sent to client initialization."""
     account, api_key = find_credentials()
     self.assertEqual(account, 'APP_ID')
     self.assertEqual(api_key, 'AUTH_TOKEN')
コード例 #9
0
 def test_partial_credentials(self):
     """Verify outcome of partial credentials sent to client initialization."""
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key, None)
コード例 #10
0
 def test_no_credentials(self):
     """Verify find_credentials() returns pair of Nones if no env variables."""
     account, api_key = find_credentials()
     self.assertEqual(account, None)
     self.assertEqual(api_key, None)