def test_sign_in(self):
     un = 'anyone'
     ak = 'something'
     # TODO, add this!
     # si = ['this', 'and-this']
     py.sign_in(un, ak)
     creds = py.get_credentials()
     self.assertEqual(creds['username'], un)
     self.assertEqual(creds['api_key'], ak)
def test_sign_in():
    un = 'anyone'
    ak = 'something'
    # TODO, add this!
    # si = ['this', 'and-this']
    py.sign_in(un, ak)
    creds = py.get_credentials()
    assert creds['username'] == un
    assert creds['api_key'] == ak
def test_sign_in():
    un = 'anyone'
    ak = 'something'
    # TODO, add this!
    # si = ['this', 'and-this']
    py.sign_in(un, ak)
    creds = py.get_credentials()
    assert creds['username'] == un
    assert creds['api_key'] == ak
 def test_get_credentials(self):
     session_credentials = session.get_session_credentials()
     if 'username' in session_credentials:
         del session._session['credentials']['username']
     if 'api_key' in session_credentials:
         del session._session['credentials']['api_key']
     creds = py.get_credentials()
     file_creds = tls.get_credentials_file()
     self.assertEqual(creds, file_creds)
 def test_sign_in(self):
     un = 'anyone'
     ak = 'something'
     # TODO, add this!
     # si = ['this', 'and-this']
     py.sign_in(un, ak)
     creds = py.get_credentials()
     self.assertEqual(creds['username'], un)
     self.assertEqual(creds['api_key'], ak)
 def test_get_credentials(self):
     session_credentials = session.get_session_credentials()
     if 'username' in session_credentials:
         del session._session['credentials']['username']
     if 'api_key' in session_credentials:
         del session._session['credentials']['api_key']
     creds = py.get_credentials()
     file_creds = tls.get_credentials_file()
     self.assertEqual(creds, file_creds)
def test_get_credentials():
    if 'username' in py._credentials:
        del py._credentials['username']
    if 'api_key' in py._credentials:
        del py._credentials['api_key']
    creds = py.get_credentials()
    file_creds = tls.get_credentials_file()
    print(creds)
    print(file_creds)
    assert creds == file_creds
def test_get_credentials():
    if 'username' in py._credentials:
        del py._credentials['username']
    if 'api_key' in py._credentials:
        del py._credentials['api_key']
    creds = py.get_credentials()
    file_creds = tls.get_credentials_file()
    print(creds)
    print(file_creds)
    assert creds == file_creds
Exemple #9
0
def test_get_credentials():
    session_credentials = session.get_session_credentials()
    if 'username' in session_credentials:
        del session._session['credentials']['username']
    if 'api_key' in session_credentials:
        del session._session['credentials']['api_key']
    creds = py.get_credentials()
    file_creds = tls.get_credentials_file()
    print(creds)
    print(file_creds)
    assert creds == file_creds
def test_get_credentials():
    session_credentials = session.get_session_credentials()
    if 'username' in session_credentials:
        del session._session['credentials']['username']
    if 'api_key' in session_credentials:
        del session._session['credentials']['api_key']
    creds = py.get_credentials()
    file_creds = tls.get_credentials_file()
    print(creds)
    print(file_creds)
    assert creds == file_creds