[ Avaa Bypassed ]




Upload:

Command:

www-data@3.139.85.192: ~ $
from unittest import TestCase

import macaroonbakery.httpbakery as httpbakery
import macaroonbakery.bakery as bakery


class TestWebBrowserInteractionInfo(TestCase):

    def test_from_dict(self):
        info_dict = {
            'VisitURL': 'https://example.com/visit',
            'WaitTokenURL': 'https://example.com/wait'}
        interaction_info = httpbakery.WebBrowserInteractionInfo.from_dict(info_dict)
        self.assertEqual(
            interaction_info.visit_url, 'https://example.com/visit')
        self.assertEqual(
            interaction_info.wait_token_url, 'https://example.com/wait')


class TestError(TestCase):

    def test_from_dict_upper_case_fields(self):
        err = httpbakery.Error.from_dict({
            'Message': 'm',
            'Code': 'c',
        })
        self.assertEqual(err, httpbakery.Error(
            code='c',
            message='m',
            info=None,
            version=bakery.LATEST_VERSION,
        ))

    def test_from_dict_lower_case_fields(self):
        err = httpbakery.Error.from_dict({
            'message': 'm',
            'code': 'c',
        })
        self.assertEqual(err, httpbakery.Error(
            code='c',
            message='m',
            info=None,
            version=bakery.LATEST_VERSION,
        ))

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 91 B 0644
common.py File 3.2 KB 0644
test_agent.py File 15.33 KB 0644
test_authorizer.py File 4.79 KB 0644
test_bakery.py File 9.5 KB 0644
test_checker.py File 35.75 KB 0644
test_checkers.py File 15.28 KB 0644
test_client.py File 25.25 KB 0644
test_codec.py File 7.56 KB 0644
test_discharge.py File 21.06 KB 0644
test_discharge_all.py File 5.72 KB 0644
test_httpbakery.py File 1.26 KB 0644
test_keyring.py File 3.45 KB 0644
test_macaroon.py File 8.23 KB 0644
test_namespace.py File 1.87 KB 0644
test_oven.py File 5.03 KB 0644
test_store.py File 546 B 0644
test_time.py File 4.65 KB 0644
test_utils.py File 3.36 KB 0644