Use assertTrue(x) instead of assertEqual(x, True)