def test_relative_link(self): a = URLTranslator() a.dictionary = self.dictionary a.location = self.location output = a.translate(self.html_relative) self.assertEqual(output, self.result)