summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2019-05-13 16:10:26 +0100
committerDavid Baker <dave@matrix.org>2019-05-13 16:10:26 +0100
commit822072b1bb8c68006dffff196885202d80099361 (patch)
treefdd2b718d1388a7c5791aee7580956835e02ee99 /tests
parentMerge remote-tracking branch 'origin/develop' into dbkr/add_dummy_flow_to_rec... (diff)
downloadsynapse-822072b1bb8c68006dffff196885202d80099361.tar.xz
Terms might not be the last stage
Diffstat (limited to 'tests')
-rw-r--r--tests/test_terms_auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_terms_auth.py b/tests/test_terms_auth.py
index f412985d2c..52739fbabc 100644
--- a/tests/test_terms_auth.py
+++ b/tests/test_terms_auth.py
@@ -59,7 +59,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
         for flow in channel.json_body["flows"]:
             self.assertIsInstance(flow["stages"], list)
             self.assertTrue(len(flow["stages"]) > 0)
-            self.assertEquals(flow["stages"][-1], "m.login.terms")
+            self.assertTrue("m.login.terms" in flow["stages"])
 
         expected_params = {
             "m.login.terms": {