from the doc
assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal, the test will fail.
for first and second what should be an expected value and an actual value?
from the doc
assertEqual(first, second, msg=None) Test that first and second are equal. If the values do not compare equal, the test will fail.
for first and second what should be an expected value and an actual value?
 
    
    Even the answer and comments imply differently, there is actual best practice: be consistent!.
So, choose an ordering (for example your hard-coded/fixture value is first) and stick to that for the rest of your code.
 
    
    assertEqual itself doesn't really care:
======================================================================
FAIL: test_foo (foo.TestFoo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/tmp/foo.py", line 6, in test_foo
    self.assertEqual("actual string", "expected string")
AssertionError: 'actual string' != 'expected string'
- actual string
+ expected string
