~ara/ubuntu/lucid/mago/fix_tests_lucid

« back to all changes in this revision

Viewing changes to seahorse/generate_ssh.py

  • Committer: Bazaar Package Importer
  • Author(s): Ara Pulido
  • Date: 2009-08-04 09:21:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090804092140-7ggrh3nlujflk0v8
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

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)