Add check on recv-key size after writing it to a file.

testing/mmn/mktime_takes_localtime_not_gmtime
Isis Lovecruft 2013-07-02 07:15:31 +00:00
parent db4826f815
commit 0ca6352457
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 1 additions and 0 deletions

View File

@ -532,6 +532,7 @@ class GPGTestCase(unittest.TestCase):
with open(keyfile, 'w') as fh:
fh.write(str(key))
self.assertTrue(os.path.isfile(keyfile))
self.assertGreater(os.stat(keyfile).st_size, 0)
def test_import_and_export(self):
"""Test that key import and export works."""