Package qm :: Package test :: Package classes :: Module explicit_suite
[hide private]
[frames] | no frames]

Source Code for Module qm.test.classes.explicit_suite

 1  ######################################################################## 
 2  # 
 3  # File:   suite.py 
 4  # Author: Mark Mitchell 
 5  # Date:   1/02/2004 
 6  # 
 7  # Contents: 
 8  #   QMTest ExplicitSuite class 
 9  # 
10  # Copyright (c) 2004 by CodeSourcery, LLC.  All rights reserved.  
11  # 
12  # For license terms see the file COPYING. 
13  # 
14  ######################################################################## 
15   
16  ######################################################################## 
17  # Imports 
18  ######################################################################## 
19   
20  from   qm.fields import BooleanField, SetField, TextField 
21  import qm.test.suite 
22   
23  ######################################################################## 
24  # Classes 
25  ######################################################################## 
26   
27 -class ExplicitSuite(qm.test.suite.Suite):
28 """An 'ExplicitSuite' stores all of the test and suite ids explicitly.""" 29 30 arguments = [ 31 SetField( 32 TextField( 33 name = "test_ids", 34 title = "Test Names", 35 description = """The the tests contained in this suite.""")), 36 SetField( 37 TextField( 38 name = "suite_ids", 39 title = "Suite Names", 40 description = """The the suites contained in this suite.""")), 41 BooleanField(name = "is_implicit", 42 title = "Implicit?", 43 description = """\ 44 True if this test is implicitly generated by QMTest.""", 45 default_value = "false"), 46 ] 47
48 - def IsImplicit(self):
49 50 return self.is_implicit == "true"
51 52
53 - def GetTestIds(self):
54 55 return self.test_ids
56 57
58 - def GetSuiteIds(self):
59 60 return self.suite_ids
61