diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-19 14:30:31 +0100 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-08-19 14:30:31 +0100 |
commit | 70e265e695a67a412b5ac76cc9bae71e9d384e80 (patch) | |
tree | 252da86c685f966d085f28c0f7ecfffce5515837 /tests/handlers/test_register.py | |
parent | Switch to pymacaroons-pynacl (diff) | |
download | synapse-70e265e695a67a412b5ac76cc9bae71e9d384e80.tar.xz |
Re-add whitespace around caveat operators
Diffstat (limited to '')
-rw-r--r-- | tests/handlers/test_register.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/handlers/test_register.py b/tests/handlers/test_register.py index 18507c547d..91cc90242f 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) |