Replaced assertISNotNone for assertTrue as the check here is object is not None rather than a boolean value