'The flatpage template tag retrive prefixed flatpages for an authenticated user'

def test_get_flatpages_with_prefix_for_user(self):

    out = Template("{%    load    flatpages    %}{%    get_flatpages    '/location/'    for    me    as    location_flatpages    %}{%    for    page    in    location_flatpages    %}{{    page.title    }},{%    endfor    %}").render(Context({'me': self.me}))
    self.assertEqual(out, 'A    Nested    Flatpage,Sekrit    Nested    Flatpage,')
