def METHOD_NAME(self):
    test_values = (
        ("abc", (1, 2, 3)),
        ("mlotstmin", (1, 2, 3)),
        ("m01s02003", (1, 2, 3)),
    )
    for test_value, reference in test_values:
        msg = "Expected STASH code .* {!r}".format(test_value)
        with self.assertRaisesRegex(ValueError, msg):
            test_value == iris.fileformats.pp.STASH(*reference)
        with self.assertRaisesRegex(ValueError, msg):
            iris.fileformats.pp.STASH(*reference) == test_value