'If request is omitted, fall back to a default locale.'

def __init__(self, request=None, locale=None):

    self.request = (request or RequestFactory(REQUEST_METHOD='bogus').request())
    (self.locale, self.shortened_path) = split_path(self.request.path_info)
    if locale:
        self.locale = locale
