summary refs log tree commit diff
path: root/tests/test_event_auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:01:18 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-23 17:01:18 +0000
commit45e098eb4c181f7356aad1fbb34b8f9bb6ad1bed (patch)
treede93441dc2d0dc982f571bf70b7bbd537fca7c3f /tests/test_event_auth.py
parentWarn if postgres database has non-C locale. (#6734) (diff)
parentPass room version object into event_auth.check and check_redaction (#6788) (diff)
downloadsynapse-45e098eb4c181f7356aad1fbb34b8f9bb6ad1bed.tar.xz
Pass room version object into event_auth.check and check_redaction (#6788)
* commit 'a8ce7aeb4':
  Pass room version object into event_auth.check and check_redaction (#6788)
Diffstat (limited to 'tests/test_event_auth.py')
-rw-r--r--tests/test_event_auth.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/test_event_auth.py b/tests/test_event_auth.py

index 8b2741d277..ca20b085a2 100644 --- a/tests/test_event_auth.py +++ b/tests/test_event_auth.py
@@ -37,7 +37,7 @@ class EventAuthTestCase(unittest.TestCase): # creator should be able to send state event_auth.check( - RoomVersions.V1.identifier, + RoomVersions.V1, _random_state_event(creator), auth_events, do_sig_check=False, @@ -47,7 +47,7 @@ class EventAuthTestCase(unittest.TestCase): self.assertRaises( AuthError, event_auth.check, - RoomVersions.V1.identifier, + RoomVersions.V1, _random_state_event(joiner), auth_events, do_sig_check=False, @@ -76,7 +76,7 @@ class EventAuthTestCase(unittest.TestCase): self.assertRaises( AuthError, event_auth.check, - RoomVersions.V1.identifier, + RoomVersions.V1, _random_state_event(pleb), auth_events, do_sig_check=False, @@ -84,10 +84,7 @@ class EventAuthTestCase(unittest.TestCase): # king should be able to send state event_auth.check( - RoomVersions.V1.identifier, - _random_state_event(king), - auth_events, - do_sig_check=False, + RoomVersions.V1, _random_state_event(king), auth_events, do_sig_check=False, )