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

« back to all changes in this revision

Viewing changes to seahorse/generate_ssh.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
 
 
3
class SeahorseSSH(SeahorseTestSuite):
 
4
    def test_generate_ssh(self, description, set_up, passphrase, computer='', login=''):
 
5
        # Create the new key
 
6
        self.application.new_ssh_key(description, set_up, passphrase, computer, login)
 
7
 
 
8
        # Check that the key was successfully created
 
9
        if self.application.assert_exists_key(description) == False:
 
10
            raise AssertionError, "The key was not succesfully created."
 
11
 
 
12
    def teardown(self):
 
13
        self.application.remove_keys()
 
14
        SeahorseTestSuite.teardown(self)