1 parent 45bc110 commit f44ccbaCopy full SHA for f44ccba
tests/tests.py
@@ -31,7 +31,7 @@ def test_index_view_with_endpoints(self):
31
32
# Test the login view
33
self.assertEqual(response.context["endpoints"][0].name_parent, "accounts")
34
- self.assertEqual(response.context["endpoints"][0].allowed_methods, ['POST', 'OPTIONS'])
+ self.assertEqual(sorted(response.context["endpoints"][0].allowed_methods), sorted(['OPTIONS', 'POST']))
35
self.assertEqual(response.context["endpoints"][0].path, "/accounts/login/")
36
self.assertEqual(response.context["endpoints"][0].docstring, "A view that allows users to login providing their username and password.")
37
self.assertEqual(len(response.context["endpoints"][0].fields), 2)
0 commit comments