def METHOD_NAME(self):
    """Verify that it is an error to ask for v1 codes predating the cutoff."""
    buildid = "201508010000"  # Earliest possible.
    arm_api9 = 0b01111000001000000000000000000000
    self.assertEqual(
        android_version_code_v1(
            buildid, cpu_arch="armeabi", min_sdk=9, max_sdk=None
        ),
        arm_api9,
    )
    with self.assertRaises(ValueError) as cm:
        underflow = "201507310000"  # Latest possible (valid) underflowing date.
        android_version_code_v1(
            underflow, cpu_arch="armeabi", min_sdk=9, max_sdk=None
        )
    self.assertTrue("underflow" in cm.exception.message)