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))
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))
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))
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))