'There are various ways that the flatpages template tag won\'t parse'

def test_parsing_errors(self):

    render = (lambda t: Template(t).render(Context()))
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    %}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    as    %}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    cheesecake    flatpages    %}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    as    flatpages    asdf%}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    cheesecake    user    as    flatpages    %}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    for    user    as    flatpages    asdf%}')
    self.assertRaises(TemplateSyntaxError, render, '{%    load    flatpages    %}{%    get_flatpages    prefix    for    user    as    flatpages    asdf%}')
