def test_unquote_handles_bool(self):
        from hoboken.objects.mixins.cookies import _unquote

        self.assertEqual(_unquote(True), True)
        self.assertEqual(_unquote(False), False)
Exemple #2
0
    def test_unquote_handles_bool(self):
        from hoboken.objects.mixins.cookies import _unquote

        self.assertEqual(_unquote(True), True)
        self.assertEqual(_unquote(False), False)
    def test_unquote(self):
        from hoboken.objects.mixins.cookies import _unquote

        self.assertEqual(_unquote(b'asdf'), b'asdf')
        self.assertEqual(_unquote(b'"asdf"'), b'asdf')
        self.assertEqual(_unquote(b'"\000\001"'), b'\x00\x01')
Exemple #4
0
    def test_unquote(self):
        from hoboken.objects.mixins.cookies import _unquote

        self.assertEqual(_unquote(b'asdf'), b'asdf')
        self.assertEqual(_unquote(b'"asdf"'), b'asdf')
        self.assertEqual(_unquote(b'"\000\001"'), b'\x00\x01')