better regex for 'x1 == x2' (allow spaces in x2 (for tuples, lists)):

sed -ri 's#assert_\(\s*([^ ]+)\s*==\s*(.+?)\s*\)#assertEqual(\2, \1)#' *py
better regex for 'x1 == x2' (allow spaces in x1 (for tuples, lists)):

sed -ri 's#assert_\(\s*(.+?)\s*==\s*(.+?)\s*\)#assertEqual(\2, \1)#' *py
Corrected bad sed replace.

due to bad regex.