~ubuntu-branches/ubuntu/vivid/mago/vivid

« back to all changes in this revision

Viewing changes to seahorse/generate_pgp.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-02-08 13:32:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110208133213-m1og7ey0m990chg6
Tags: 0.3+bzr20-0ubuntu1
* debian/rules:
  - updated to debhelper 7
  - use dh_python2 instead of python-central
* debian/pycompat:
  - removed, no longer needed
* debian/control:
  - dropped cdbs and python-central dependencies
* bzr snapshot of the current trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from mago.test_suite.seahorse 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