# -*- coding: utf-8 -*-
import unittest
from common import signer


class Test1(unittest.TestCase):
    def test1(self):
        bs = bytes(range(0x80))
        self.assertEqual(signer.urlencode(bs.decode()),
                         "%00%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%20%21%22%23%24%25%26%27%28%29%2A%2B%2C-.%2F0123456789%3A%3B%3C%3D%3E%3F%40ABCDEFGHIJKLMNOPQRSTUVWXYZ%5B%5C%5D%5E_%60abcdefghijklmnopqrstuvwxyz%7B%7C%7D~%7F")


if __name__ == '__main__':
    unittest.main()
