self.assertEqual(expected_url, url)
        
    def testFromDocument4(self):

        content_url = 'http://www.example.com/foo/index.html'
        relative_url = '../zebra.html'
        folderish_p = 0
        expected_url = '/zebra.html'
        self.assertEqual(expected_url, url)

    def testFromFolder4(self):

        content_url = 'http://www.example.com/foo/bar'
        relative_url = './orion.html'
        folderish_p = 1
        expected_url = '/foo/bar/orion.html'
        self.assertEqual(expected_url, url)

    def testFromDocument2(self):

        content_url = 'http://www.example.com/foo/bar/baz.html'
        relative_url = './bar.html'
        folderish_p = 0
        expected_url = '/foo/bar/bar.html'