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

« back to all changes in this revision

Viewing changes to mago/test_suite/ubuntu_menu.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
 
This module contains the definition of the test suite used for testing Ubuntu
3
 
Menus
4
 
"""
5
 
from .main import SingleApplicationTestSuite
6
 
from ..application.ubuntu_menu import UbuntuMenu
7
 
 
8
 
 
9
 
class UbuntuMenuTestSuite(SingleApplicationTestSuite):
10
 
    APPLICATION_FACTORY = UbuntuMenu
11
 
    def teardown(self):
12
 
        self.cleanup() 
13
 
 
14
 
    def cleanup(self):
15
 
        if self.application.is_opened() == 1:
16
 
            self.application.close()
17
 
        SingleApplicationTestSuite.cleanup(self)