diff options
author | Erik Johnston <erik@matrix.org> | 2015-10-13 14:34:01 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-10-13 14:34:01 +0100 |
commit | 323d3e506ded7a2eefc1d234b771b7ca62c0ca24 (patch) | |
tree | 1e8af5e6a413b4e5933cde97024ccc05e7951a12 /tests | |
parent | Merge branch 'erikj/store_engine' into erikj/search (diff) | |
parent | Merge pull request #301 from matrix-org/markjh/v2_filtering (diff) | |
download | synapse-323d3e506ded7a2eefc1d234b771b7ca62c0ca24.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/search
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/test_filtering.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/api/test_filtering.py b/tests/api/test_filtering.py index 65b2f590c8..6942cdac51 100644 --- a/tests/api/test_filtering.py +++ b/tests/api/test_filtering.py @@ -345,9 +345,9 @@ class FilteringTestCase(unittest.TestCase): ) @defer.inlineCallbacks - def test_filter_public_user_data_match(self): + def test_filter_presence_match(self): user_filter_json = { - "public_user_data": { + "presence": { "types": ["m.*"] } } @@ -368,13 +368,13 @@ class FilteringTestCase(unittest.TestCase): filter_id=filter_id, ) - results = user_filter.filter_public_user_data(events=events) + results = user_filter.filter_presence(events=events) self.assertEquals(events, results) @defer.inlineCallbacks - def test_filter_public_user_data_no_match(self): + def test_filter_presence_no_match(self): user_filter_json = { - "public_user_data": { + "presence": { "types": ["m.*"] } } @@ -395,7 +395,7 @@ class FilteringTestCase(unittest.TestCase): filter_id=filter_id, ) - results = user_filter.filter_public_user_data(events=events) + results = user_filter.filter_presence(events=events) self.assertEquals([], results) @defer.inlineCallbacks |