~ara/ubuntu/lucid/mago/fix_tests_lucid

« back to all changes in this revision

Viewing changes to mago/test_suite/pidgin.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
"""
 
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.gnome 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