2
test_suite module contains the definition of the TestSuite class that
3
must be used by all test suites written for the mago package
5
from ..application.main import Application
6
from inspect import getsourcefile
7
from os.path import dirname
11
TestSuite that implements all the test suite methods desired in a
23
def get_test_dir(cls):
24
return dirname(getsourcefile(cls))
25
get_test_dir = classmethod(get_test_dir)
28
class SingleApplicationTestSuite(TestSuite):
30
Test suite intended to make sure that a single application is
33
APPLICATION_FACTORY: A class attribute that stores the factory for an
36
APPLICATION_FACTORY = Application
38
self.application = self.APPLICATION_FACTORY()
41
self.application.set_name(self.application.WINDOW)
42
self.application.set_close_type(self.application.CLOSE_TYPE)
43
self.application.set_close_name(self.application.CLOSE_NAME)