Beispiel #1
0
    def test_decode(self):
        res = Client.decode('test', None)
        self.assertEqual('test', res)

        res = Client.decode('JjJi', 'Base64Decode')
        self.assertEqual('&2b', res)

        res = Client.decode('path/%262b', 'UrlDecode')
        self.assertEqual('path/&2b', res)
Beispiel #2
0
    def test_decode(self):
        res = Client.decode('test', None)
        self.assertEqual('test', res)

        res = Client.decode('test/dXJs', 'Base64Decode')
        self.assertEqual('test/url', res)

        res = Client.decode('test/url', 'UrlDecode')
        self.assertEqual('test/url', res)

        res = Client.decode('test/url/rr', 'test')
        self.assertEqual('test/url/rr', res)