Replace assert statements with assert methods

Some of the test methods were using python assert
statements for making assertions. This patch replaces
those statements with apropriate assert methods.

Change-Id: I3fcf4253560474868a0b32a7994f446e7b4bcc67
Closes-bug: #1303124
Merge "Replace assert statements with assert methods"