def testGnAuthLogin_failed(self):
     response = gn_auth_login(gn_settings['gn_username'], 'test', self.logger)
     self.assertFalse(response, 'Function: gn_auth_login - Failed because of not expected error behavior.')
 def testGnAuthLogin(self):
     response = gn_auth_login(gn_settings['gn_username'], gn_settings['gn_password'], self.logger)
     self.assertTrue(isinstance(response, requests.Session), 'Function: gn_auth_login - Failed because response is not a session object')
     self.assertTrue('JSESSIONID' in requests.utils.dict_from_cookiejar(response.cookies), 
                     'Function: gn_auth_login - Failed because response session object has no "JSESSIONID cookies.')