~mago-contributors/mago/mago-1.0

« back to all changes in this revision

Viewing changes to mago/test_suite/xchat.py

  • Committer: Jean-Baptiste Lallement
  • Date: 2010-12-16 09:01:44 UTC
  • mfrom: (155.1.2 mago)
  • Revision ID: jean-baptiste.lallement@ubuntu.com-20101216090144-82nyiqdsj9q304tq
Adding in basic test for xchat. Thanks to Marjo Mercado

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
This module contains the definition of the test suite for Xchat testing.
 
3
"""
 
4
import ldtp, ooldtp
 
5
from .main import SingleApplicationTestSuite
 
6
from ..application.xchat import Application, Xchat
 
7
 
 
8
class XchatTestSuite(SingleApplicationTestSuite):
 
9
    """
 
10
    Default test suite for Xchat
 
11
    """
 
12
    APPLICATION_FACTORY = Xchat
 
13
    def setup(self):
 
14
        self.application.open()
 
15
 
 
16
    def teardown(self):
 
17
        self.application.close()
 
18
 
 
19
    def cleanup(self):
 
20
        self.application.close()