44
44
my_gpg = gpg.GPGStrategy(FakeConfig())
45
45
self.assertRaises(errors.SigningFailed, my_gpg.sign, 'content')
49
49
my_gpg = gpg.GPGStrategy(FakeConfig())
50
52
if sys.platform == 'win32':
51
53
# Windows doesn't come with cat, and we don't require it
52
54
# so lets try using python instead.
54
56
# It is too much work to make sys.stdout be in binary mode.
55
57
# http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443
56
58
my_gpg._command_line = lambda:[sys.executable, '-c',