This would read a little better like:

    self.failif(fail_check is 1,
                "Memory check mismatch ,%s"
                % fail_content)