def METHOD_NAME(self):
    '''
    Tests that the old style reset keys that didn't contain an expiration date no longer work
    '''
    user_dict = factories.User(name='old_reset_key_user', email='old_reset_key_user@hdx.hdxtest.org')
    user = model.User.get(user_dict['id'])
    ckan_mailer.create_reset_key(user)
    assert user.reset_key
    reset_key_helper = reset_password.ResetKeyHelper(user.reset_key)
    assert not reset_key_helper.contains_expiration_time(), \
        'Keys created by core ckan should be recognized as not containing the time'
    assert reset_key_helper.is_expired(), 'Keys that have no time are considered expired'