~ubuntu-branches/ubuntu/natty/mago/natty

« back to all changes in this revision

Viewing changes to mago/test_suite/pidgin.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
 
"""
2
 
gnome module contains the definition of the test suites used for gnome
3
 
applications
4
 
"""
5
 
import ldtp, ooldtp
6
 
from .main import SingleApplicationTestSuite
7
 
from ..application.policykit import Application
8
 
from ..application.pidgin import Pidgin
9
 
 
10
 
class PidginTestSuite(SingleApplicationTestSuite):
11
 
    """
12
 
    Default test suite for Pidgin
13
 
    """
14
 
    APPLICATION_FACTORY = Pidgin
15
 
    def __init__(self, **kwargs):
16
 
        self.app_args = kwargs
17
 
        SingleApplicationTestSuite.__init__(self)
18
 
 
19
 
    def setup(self):
20
 
        self.application.open(**self.app_args)
21
 
 
22
 
    def teardown(self):
23
 
        self.application.close()
24
 
 
25
 
    def cleanup(self):
26
 
        #TODO: it should delete all the "My Personal Keys"
27
 
        self.application.close()
28
 
        self.application.open(**self.app_args)
29