def METHOD_NAME(self):
    value = 'a'
    self.validator = HexValidator(min_length=5)
    with self.assertRaises(ValidationError) as err:
        self.validator(value)
    self.assertEqual(str(err.exception), "['Ensure that there are more than 5 characters.']")
    self.assertEqual(err.exception.code, 'hex_only_min_length')