def testArgparseBool_InvalidValue(self): expected_error = "Invalid value encountered. Expected 'True' or 'False'." with self.assertRaisesWithLiteralMatch(argparse.ArgumentTypeError, expected_error): config_updater_util.ArgparseBool("baz")
def testArgparseBool_InvalidType(self): expected_error = "Unexpected type: float. Expected a string." with self.assertRaisesWithLiteralMatch(argparse.ArgumentTypeError, expected_error): config_updater_util.ArgparseBool(1.23)