def testMobilePhoneNumberValidationStandard(self):
        """ Test that validator for mobile phone number is applied """

        current.deployment_settings \
               .msg.require_international_phone_numbers = False

        from s3db.pr import S3ContactModel
        onvalidation = S3ContactModel.pr_contact_onvalidation

        form = Storage(
            vars = Storage(
                contact_method = "SMS",
            )
        )

        # valid
        form.errors = Storage()
        form.vars.value = "0368172634"
        onvalidation(form)
        self.assertEqual(form.vars.value, "0368172634")
        self.assertFalse("value" in form.errors)

        # invalid
        form.errors = Storage()
        form.vars.value = "036-ASBKD"
        onvalidation(form)
        self.assertEqual(form.vars.value, "036-ASBKD")
        self.assertTrue(form.errors in "value")

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3db/pr.py/ContactValidationTests.testMobilePhoneNumberValidationStandard/swapped operands of `in`