summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-11 13:25:19 +0000
committerErik Johnston <erik@matrix.org>2014-12-11 13:25:19 +0000
commit8cdebce470869613658543cb79ed5dd97a5f0548 (patch)
treefda8993e709dcd1cea380df5db79bc6f202c3618 /tests/storage
parentFix some tests (diff)
downloadsynapse-8cdebce470869613658543cb79ed5dd97a5f0548.tar.xz
Fix redactions. Fix 'age' key
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_redaction.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/storage/test_redaction.py b/tests/storage/test_redaction.py

index e8671ae3a2..d81f7add1c 100644 --- a/tests/storage/test_redaction.py +++ b/tests/storage/test_redaction.py
@@ -149,7 +149,7 @@ class RedactionTestCase(unittest.TestCase): event, ) - self.assertFalse(hasattr(event, "redacted_because")) + self.assertFalse("redacted_because" in event.unsigned) # Redact event reason = "Because I said so" @@ -179,7 +179,7 @@ class RedactionTestCase(unittest.TestCase): event, ) - self.assertTrue(hasattr(event, "redacted_because")) + self.assertTrue("redacted_because" in event.unsigned) self.assertObjectHasAttributes( { @@ -187,7 +187,7 @@ class RedactionTestCase(unittest.TestCase): "user_id": self.u_alice.to_string(), "content": {"reason": reason}, }, - event.redacted_because, + event.unsigned["redacted_because"], ) @defer.inlineCallbacks