-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Parameter order in assertEqual() statements #440
Copy link
Copy link
Closed
Description
We have both ways of ordering the parameters actual, expected result of the assertEqual() method.
While the Python implementation uses indifferent names (first, second - code) all examples use the order actual followed by expected (python doc – basic-example).
self.assertEqual('foo'.upper(), 'FOO')
self.assertEqual(s.split(), ['hello', 'world'])I think it would be better to be consistent within this track. As I personally don't have any preferences I would just follow the official python documentation examples and default to self.assertEqual(actual, expected).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels