Artifact [8c3a82ec24]
Artifact 8c3a82ec24dbbd5b358284a7fca227813f5e92db:
- File test/pt_country.py — part of check-in [314a6459fe] at 2022-10-24 20:39:48 on branch trunk — move linebreak/quick into options, condense pluginconf.gui.window() invocation (user: mario size: 274)
import sys sys.path.append(".") import pagetranslate as pt class StubPt(pt.PageTranslate): def __init__(self, *x): pass def country(): p = StubPt() assert p.country("it") == "IT" assert p.country("en") == "US" assert p.country("ilo") == "PH"