221
220
self.check_context(context2A, path, 4)
222
221
context2B = context1.from_string("not there")
223
222
self.check_context(context2B, path, 21)
227
226
class TestWriteOption(tests.TestCase):
228
227
"""Tests for writing texts extracted from options in pot format"""
230
229
def pot_from_option(self, opt, context=None, note="test"):
232
231
exporter = export_pot._PotExporter(sio)
234
233
context = export_pot._ModuleContext("nowhere", 0)