@@ -0,0 +1,1144 @@
+from test.base import ApiTestCase%0A%0Afrom zou.app.stores import auth_tokens_store%0A%0A%0Aclass CommandsTestCase(ApiTestCase):%0A%0A    def setUp(self):%0A        super(CommandsTestCase, self).setUp()%0A        self.store = auth_tokens_store%0A        self.store.clear()%0A%0A    def tearDown(self):%0A        self.store.clear()%0A%0A    def test_get_and_add(self):%0A        self.assertIsNone(self.store.get(%22key-1%22))%0A        self.store.add(%22key-1%22, %22true%22)%0A        self.assertEquals(self.store.get(%22key-1%22), %22true%22)%0A%0A    def test_delete(self):%0A        self.store.add(%22key-1%22, %22true%22)%0A        self.store.delete(%22key-1%22)%0A        self.assertIsNone(self.store.get(%22key-1%22))%0A%0A    def test_is_revoked(self):%0A        self.assertTrue(self.store.is_revoked(%7B%22jti%22: %22key-1%22%7D))%0A        self.store.add(%22key-1%22, %22true%22)%0A        self.assertTrue(self.store.is_revoked(%7B%22jti%22: %22key-1%22%7D))%0A        self.store.add(%22key-1%22, %22false%22)%0A        self.assertFalse(self.store.is_revoked(%7B%22jti%22: %22key-1%22%7D))%0A%0A    def test_keys(self):%0A        self.store.add(%22key-1%22, %22true%22)%0A        self.store.add(%22key-2%22, %22true%22)%0A        self.assertEquals(%0A            self.store.keys(), %5B%22key-1%22, %22key-2%22%5D%0A        )%0A

Add auth token store