示例#1
0
 def test_generate(self):
     self.assertEqual(check_data_writable(), [])
     self.assertIsNone(get_gpg_key(silent=True))
     key = generate_gpg_key()
     self.check_errors()
     self.assertIsNotNone(key)
     self.assertEqual(key, get_gpg_key())
示例#2
0
 def test_generate(self):
     self.assertEqual(check_data_writable(), [])
     self.assertIsNone(get_gpg_key())
     key = generate_gpg_key()
     self.assertIsNotNone(key)
     self.assertEqual(key, get_gpg_key())