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