'The flatpage template tag retrives unregistered flatpages for an anonymous user'

def test_get_flatpages_tag_for_anon_user(self):

    out = Template('{%    load    flatpages    %}{%    get_flatpages    for    anonuser    as    flatpages    %}{%    for    page    in    flatpages    %}{{    page.title    }},{%    endfor    %}').render(Context({'anonuser': AnonymousUser()}))
    self.assertEqual(out, 'A    Flatpage,A    Nested    Flatpage,')
