

def test_getRootURL(self):
    '\n        L{FakeRequest.getRootURL} returns C{None} when\n        L{FakeRequest.rememberRootURL} has not yet been called.  After\n        L{FakeRequest.rememberRootURL} has been called,\n        L{FakeRequest.getRootURL} returns the value which was passed to it.\n        '
    request = FakeRequest()
    request.assertIdentical(request.getRootURL(), None)
    request.rememberRootURL('foo/bar')
    self.assertEqual(request.getRootURL(), 'foo/bar')

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py TestFakeRequest.test_getRootURL/VarMisuse@18/120 `self`->`request`