142
142
""".encode('utf8') in template)
145
145
if sys.platform == "win32":
147
148
f.write('@rem dummy fed')
157
159
def test_run_editor(self):
158
160
self.overrideEnv('BZR_EDITOR', self.make_do_nothing_editor())
159
161
self.assertEqual(True, msgeditor._run_editor(''),
160
162
'Unable to run dummy fake editor')
162
173
def make_fake_editor(self, message='test message from fed\\n'):
163
174
"""Set up environment so that an editor will be a known script.