From 80f77a6572cd91e79f41a3eb28bbe870b5f4b4b5 Mon Sep 17 00:00:00 2001 From: Samuel Dion-Girardeau Date: Mon, 7 May 2018 21:27:13 -0400 Subject: [PATCH] Fix assertEqual parameter order (expected, actual) This ensures the failure message, if any, is reflective of the intended value. --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 17cd453..3788238 100644 --- a/tests.py +++ b/tests.py @@ -131,7 +131,7 @@ class SnapPassRoutesTestCase(TestCase): for ua in a_few_sneaky_bots: rv = self.app.get('/{0}'.format(key), headers={ 'User-Agent': ua }) - self.assertEqual(rv.status_code, 404) + self.assertEqual(404, rv.status_code) if __name__ == '__main__':