Beispiel #1
0
 def test_generate_api_hash__unicode(self):
     """ Make sure no errors are raised when using unicode strings with non-ascii chars """
     params = {"userid": u"Renée"}
     api_hash = docebo_sso.generate_api_hash(params)
     self.assertEqual(len(api_hash), 68)
     self.assertTrue(isinstance(api_hash, str))
Beispiel #2
0
 def test_generate_api_hash__unicode(self):
   """ Make sure no errors are raised when using unicode strings with non-ascii chars """
   params = {'userid': u'Renée'}
   api_hash = docebo_sso.generate_api_hash(params)
   self.assertEqual(len(api_hash), 68)
   self.assertTrue(isinstance(api_hash, str))
Beispiel #3
0
 def test_generate_api_hash(self):
     """Test that the api authentication hash was correctly created"""
     params = {"userid": "bats"}
     api_hash = docebo_sso.generate_api_hash(params)
     self.assertEqual(len(api_hash), 68)
     self.assertTrue(isinstance(api_hash, str))
Beispiel #4
0
 def test_generate_api_hash(self):
  """Test that the api authentication hash was correctly created"""
  params = {'userid': 'bats'}
  api_hash = docebo_sso.generate_api_hash(params)
  self.assertEqual(len(api_hash), 68)
  self.assertTrue(isinstance(api_hash, str))