Replace assertEqual(None, *) with assertIsNone in tests

Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.

Change-Id: I2506fe57adb98c52147138d8eb6c0254423ffdd7
This commit is contained in:
lawrancejing 2014-02-16 13:28:18 +08:00 committed by zhang-jinnan
parent 798782cb9c
commit 08d458fb06
1 changed files with 1 additions and 1 deletions

View File

@ -228,4 +228,4 @@ malformed or otherwise incorrect.
}"""
msg = forms.exception_to_validation_msg(json_error)
self.assertEqual(msg, None)
self.assertIsNone(msg)