def test_specifiying_wagtail_mount_point_does_prepend_allowed_paths_with_wagtail_mount_path(settings):
    settings.WAGTAIL_MOUNT_PATH = '/wagtail'
    allowed_paths = VerifyUserMiddleware()._get_allowed_paths(has_device=False)

    for allowed_path in allowed_paths:
        assert allowed_path.startswith(settings.WAGTAIL_MOUNT_PATH)