diff options
author | Colin Watson <cjwatson@debian.org> | 2018-02-28 17:08:17 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2018-02-28 17:09:32 +0000 |
commit | 6afbd6cfb2ceae0444b1ad15f143117315c0b8e2 (patch) | |
tree | 294ffe7ca0d12231dfff2a3d8dd7011aaf824cbc /macaroonbakery/tests/test_httpbakery.py | |
parent | fa31bef2ea6d7c2207dec570119291fa83e6675d (diff) | |
parent | d918563db4de954c3df719d06a31bdd3aec3a8fc (diff) |
New upstream release (1.1.3)
Diffstat (limited to 'macaroonbakery/tests/test_httpbakery.py')
-rw-r--r-- | macaroonbakery/tests/test_httpbakery.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/macaroonbakery/tests/test_httpbakery.py b/macaroonbakery/tests/test_httpbakery.py new file mode 100644 index 0000000..4aac850 --- /dev/null +++ b/macaroonbakery/tests/test_httpbakery.py @@ -0,0 +1,16 @@ +from unittest import TestCase + +from macaroonbakery.httpbakery import WebBrowserInteractionInfo + + +class TestWebBrowserInteractionInfo(TestCase): + + def test_from_dict(self): + info_dict = { + 'VisitURL': 'https://example.com/visit', + 'WaitTokenURL': 'https://example.com/wait'} + interaction_info = 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') |