diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2015-12-01 17:34:32 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2015-12-01 17:34:32 +0000 |
commit | 14d7acfad48ea7807b032b3fd99649b500e651f7 (patch) | |
tree | f92b2d24bd243c3d91c0ca998f67fc5c7d2b95a3 /tests/utils.py | |
parent | Merge pull request #404 from matrix-org/markjh/trivial_rename (diff) | |
download | synapse-14d7acfad48ea7807b032b3fd99649b500e651f7.tar.xz |
Host /unstable and /r0 versions of r0 APIs
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py index 91040c2efd..aee69b1caa 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -168,8 +168,9 @@ class MockHttpResource(HttpServer): raise KeyError("No event can handle %s" % path) - def register_path(self, method, path_pattern, callback): - self.callbacks.append((method, path_pattern, callback)) + def register_paths(self, method, path_patterns, callback): + for path_pattern in path_patterns: + self.callbacks.append((method, path_pattern, callback)) class MockKey(object): |