summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-08-18 17:39:26 +0100
committerDaniel Wagner-Hall <daniel@matrix.org>2015-08-18 17:39:26 +0100
commitce832c38d4ba1412cd5b5f8a4fb9328cb2d444fa (patch)
treec9f7760ec646baa965bef037ca3ed031ca7798f7 /tests/handlers
parentFix units in test (diff)
downloadsynapse-ce832c38d4ba1412cd5b5f8a4fb9328cb2d444fa.tar.xz
Remove padding space around caveat operators
Diffstat (limited to '')
-rw-r--r--tests/handlers/test_register.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handlers/test_register.py b/tests/handlers/test_register.py
index 91cc90242f..18507c547d 100644
--- a/tests/handlers/test_register.py
+++ b/tests/handlers/test_register.py
@@ -51,16 +51,16 @@ class RegisterTestCase(unittest.TestCase):
         macaroon = pymacaroons.Macaroon.deserialize(token)
 
         def verify_gen(caveat):
-            return caveat == "gen = 1"
+            return caveat == "gen=1"
 
         def verify_user(caveat):
-            return caveat == "user_id = a_user"
+            return caveat == "user_id=a_user"
 
         def verify_type(caveat):
-            return caveat == "type = access"
+            return caveat == "type=access"
 
         def verify_expiry(caveat):
-            return caveat == "time < 8600000"
+            return caveat == "time<8600000"
 
         v = pymacaroons.Verifier()
         v.satisfy_general(verify_gen)