def METHOD_NAME(self):
    for build in ("A", "", "9"):
        with self.assertRaises(ValueError) as cm:
            macos_version_from_build(build)
        self.assertEqual(cm.exception.args[0], "Bad build number")