def METHOD_NAME(
    self, expected_result=True, expected_gnokii_call=True
):
    assert (
        expected_result == self.return_code
    ), "Unexpected result from sms.submitMessage"
    if expected_gnokii_call:
        gnokki_cmd = "gnokii --config %s --sendsms %s" % (
            self.config["CONFIGFILE"],
            self.phone,
        )
        if "SMSC" in self.config:
            gnokki_cmd += " --smsc %s" % self.config["SMSC"]
        assert " ".join(self.gnokii_args[0]) == gnokki_cmd