Fix assertEqual parameter order (expected, actual)

This ensures the failure message, if any, is reflective of the
intended value.
This commit is contained in:
Samuel Dion-Girardeau 2018-05-07 21:27:13 -04:00
parent e6eca0daf8
commit 80f77a6572

View file

@ -131,7 +131,7 @@ class SnapPassRoutesTestCase(TestCase):
for ua in a_few_sneaky_bots: for ua in a_few_sneaky_bots:
rv = self.app.get('/{0}'.format(key), headers={ 'User-Agent': ua }) 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__': if __name__ == '__main__':