class TestApertiumWeb: def setup_class(self): self.backend = ApertiumWebBackend() def test_init(self): assert self.backend.activate(dict()) assert len(self.backend.language_pairs) != 0 def test_translate(self): pair = self.backend.language_pairs[0] trans = self.backend.translate('hello', pair[0], pair[1]) assert trans is not None
def setup_class(self): self.backend = ApertiumWebBackend()