python: modernize usage of assert_()
Switch away from the deprecated assert_(), using the more appropriate versions: assertTrue(), assertEqual(), assertNotEqual(), and assertIn(). Because of this, split a few 'cond1 and cond2' asserts into multiple checks. While doing all the changes, try to not exceed 80 columns.
Showing with 222 additions and 144 deletions