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)
def test_simple_translation(self): a = URLTranslator() a.dictionary = self.dictionary output = a.translate(self.html) self.assertEqual(output, self.result)