def test_check_tokens(self): result = appier.check_tokens(None, ("admin", "user"), tokens_m = {"*" : True}) self.assertEqual(result, True) result = appier.check_tokens(None, ("admin", "user"), tokens_m = {}) self.assertEqual(result, False) result = appier.check_tokens(None, ("admin", "user"), tokens_m = {"admin" : True}) self.assertEqual(result, False)