def METHOD_NAME(self):
    """
    The original bug this aims to solve only occurs for absolute paths
    To minimize impact of the change, only look at basenames of absolute paths
    """
    form = {'attachment': 'path/to/my/attachment.ext'}
    result = _get_question_id_for_attachment(form, 'attachment.ext')
    self.assertIsNone(result)