@@ -0,0 +1,1230 @@
+import unittest%0A%0Afrom yocommon.util import configure%0A%0Aimport authtkt%0A%0A%0Aclass AuthTktTests(unittest.TestCase):%0A    def setUp(self):%0A        self.secret = 'hmac secret'%0A        self.crypto_secret = 'top secret'%0A        self.cookie = (%0A            'MjQ4MWQ3ODEzNGI2MjE3N2I4OGQ4MDRjNTZkY2YxZGU1MWRkNjY3NjEyMzQ1Njc4O'%0A            'TAhdGVzdCFnTGpIMGluemJTZTZHYzNaU2J6S1ljWTZkUlZ5VXloR0pWMWxpWXBYY3'%0A            'RmTjAxQlRWZFRlOS96M0g0dmEyOUFEWFlDLytFNFpDTmQ5S09OSlBJZnFoWUNnNlF'%0A            'DYWFDODM3NXdjS1RTbERVUlVUZlV6TUxWZHRZSVpic0JxeGxuRDgyWHBjeE9ORjZB'%0A            'Y3pvQjlkNkU0N0xScGVVNjNmUTFpdFhOcFkwRExyUG8xdnlGWUtxZHNRTHBYUHc9P'%0A            'Q==')%0A        configure(SECRET=self.secret)%0A        configure(CRYPTO_SECRET=self.crypto_secret)%0A%0A    def test_get_ticket_data_returns_proper_data(self):%0A        data = authtkt.get_ticket_data(self.cookie)%0A        self.assertTrue(all(%0A            %5Bkey in data for key in (%0A                'surname', 'name', 'id', 'tokens')%5D%0A        ))%0A%0A    def test_valid_ticket_validates_correctly(self):%0A        self.assertTrue(authtkt.validate(self.cookie, self.secret))%0A%0A    def test_invalid_ticket_does_not_validate(self):%0A        self.assertFalse(authtkt.validate('I am a banana', self.secret))%0A

Add tests (Inspired by yocommon)