~ubuntu-branches/ubuntu/lucid/mago/lucid

« back to all changes in this revision

Viewing changes to mago/test_suite/ubuntu.py

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
ubuntu module contains the definition of the test suites used for ubuntu
 
3
applications
 
4
"""
 
5
from .main import SingleApplicationTestSuite
 
6
from ..application.ubuntu import UbuntuMenu, UpdateManager
 
7
 
 
8
class UbuntuMenuTestSuite(SingleApplicationTestSuite):
 
9
    APPLICATION_FACTORY = UbuntuMenu
 
10
    def teardown(self):
 
11
        self.cleanup() 
 
12
 
 
13
    def cleanup(self):
 
14
        if self.application.is_opened() == 1:
 
15
            self.application.close()
 
16
        SingleApplicationTestSuite.cleanup(self)
 
17
 
 
18
 
 
19
class UpdateManagerTestSuite(SingleApplicationTestSuite):
 
20
    APPLICATION_FACTORY = UpdateManager