~ubuntu-branches/ubuntu/saucy/mago/saucy

« back to all changes in this revision

Viewing changes to mago/test_suite/shotwell.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 for Shotwell testing.
3
 
"""
4
 
import ldtp, ooldtp
5
 
from .main import SingleApplicationTestSuite
6
 
from ..application.shotwell import Application, Shotwell
7
 
 
8
 
class ShotwellTestSuite(SingleApplicationTestSuite):
9
 
    """
10
 
    Default test suite for Shotwell
11
 
    """
12
 
    APPLICATION_FACTORY = Shotwell
13
 
    def setup(self):
14
 
        self.application.open()
15
 
 
16
 
    def teardown(self):
17
 
        # Clean the library
18
 
        shotwell = ooldtp.context(self.application.name)
19
 
        selectall = shotwell.getchild(self.application.MNU_SELECTALL)
20
 
        selectall.selectmenuitem()
21
 
        delete = shotwell.getchild(self.application.MNU_DELETE)
22
 
        delete.selectmenuitem()
23
 
        emptytrash = shotwell.getchild(self.application.MNU_EMPTYTRASH)
24
 
        emptytrash.selectmenuitem()
25
 
        
26
 
        ldtp.waittillguiexist(self.application.DLG_WARNING)
27
 
        
28
 
        warning = ooldtp.context(self.application.DLG_WARNING)
29
 
        
30
 
        onlyremove = warning.getchild(self.application.BTN_ONLYREMOVE)
31
 
        onlyremove.click()
32
 
 
33
 
        ldtp.waittillguinotexist(self.application.DLG_WARNING)
34
 
        self.application.close()
35
 
 
36
 
    def cleanup(self):
37
 
        pass
 
 
b'\\ No newline at end of file'