'A template with a toplevel C{attr} tag will not load; it will raise
L{AssertionError} if you try.'

def test_errorToplevelAttr(self):

    self.assertRaises(AssertionError, XMLString, "<t:attr\n                                                xmlns:t='http://twistedmatrix.com/ns/twisted.web.template/0.1'\n                                                name='something'\n                                                >hello</t:attr>\n                                                ")
