1
from mago.test_suite.gnome import SeahorseTestSuite
4
class SeahorsePGP(SeahorseTestSuite):
5
def test_generate_pgp(self, name, email, comment, passphrase):
6
# Open the update manager and check the repositories
7
self.application.new_pgp_key(name, email, comment, passphrase)
9
key = ' '.join([name, email, "'"+comment+"'"])
11
# We have to wait a couple of seconds for the table to refresh
14
if self.application.assert_exists_key(key) == False:
15
raise AssertionError, "The key was not succesfully created."
18
self.application.remove_keys()
19
SeahorseTestSuite.teardown(self)