56
56
# It is too much work to make sys.stdout be in binary mode.
57
57
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443
58
58
my_gpg._command_line = lambda:[sys.executable, '-c',
60
60
new_content = content.replace('\n', '\r\n')
62
62
self.assertEqual(new_content, my_gpg.sign(content))
65
65
self.assertEqual(content, my_gpg.sign(content))