~dhillon-v10/qa-regression-testing/mago-packages-checking

« back to all changes in this revision

Viewing changes to seahorse/generate_pgp.py

  • Committer: Vikram Dhillon
  • Date: 2010-01-12 02:42:18 UTC
  • Revision ID: dhillonv10@gmail.com-20100112024218-7ntl2wrpbxqjb3kx
Initial commit: getting in the data from mago

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from mago.test_suite.gnome import SeahorseTestSuite
 
2
import time
 
3
    
 
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)
 
8
 
 
9
        key = '  '.join([name, email, "'"+comment+"'"])
 
10
 
 
11
        # We have to wait a couple of seconds for the table to refresh
 
12
        time.sleep(3)
 
13
 
 
14
        if self.application.assert_exists_key(key) == False:
 
15
            raise AssertionError, "The key was not succesfully created."
 
16
 
 
17
    def teardown(self):
 
18
        self.application.remove_keys()
 
19
        SeahorseTestSuite.teardown(self)
 
20