summaryrefslogtreecommitdiff
path: root/macaroonbakery/tests/test_macaroon.py
diff options
context:
space:
mode:
Diffstat (limited to 'macaroonbakery/tests/test_macaroon.py')
-rw-r--r--macaroonbakery/tests/test_macaroon.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/macaroonbakery/tests/test_macaroon.py b/macaroonbakery/tests/test_macaroon.py
index 93bbbb8..bcbbf80 100644
--- a/macaroonbakery/tests/test_macaroon.py
+++ b/macaroonbakery/tests/test_macaroon.py
@@ -3,13 +3,12 @@
import json
from unittest import TestCase
-import six
-import pymacaroons
-from pymacaroons import serializers
-
-import macaroonbakery as bakery
+import macaroonbakery.bakery as bakery
import macaroonbakery.checkers as checkers
+import pymacaroons
+import six
from macaroonbakery.tests import common
+from pymacaroons import serializers
class TestMacaroon(TestCase):
@@ -25,7 +24,8 @@ class TestMacaroon(TestCase):
self.assertEquals(m.version, bakery.LATEST_VERSION)
def test_add_first_party_caveat(self):
- m = bakery.Macaroon('rootkey', 'some id', 'here', bakery.LATEST_VERSION)
+ m = bakery.Macaroon('rootkey', 'some id', 'here',
+ bakery.LATEST_VERSION)
m.add_caveat(checkers.Caveat('test_condition'))
caveats = m.first_party_caveats()
self.assertEquals(len(caveats), 1)