Example #1
0
    def RunTests(self, tests_to_run=None):
        "Run the tests on dialog"

        # get all the controls
        controls = [self]
        controls.extend(self.Children())

        return tests.run_tests(controls, tests_to_run)
Example #2
0
    def RunTests(self, tests_to_run = None):
        "Run the tests on dialog"

        # get all the controls
        controls = [self]
        controls.extend(self.Children())

        return tests.run_tests(controls, tests_to_run)
    def RunTests(self, tests_to_run = None, ref_controls = None):
        "Run the tests on dialog"

        # get all the controls
        controls = [self] + self.Children()
        
        # add the reference controls
        if ref_controls is not None:                        
            matched_flags = controlproperties.SetReferenceControls(
                controls, ref_controls)
            
            # todo: allow some checking of how well the controls matched
            # matched_flags says how well they matched
            # 1 = same number of controls
            # 2 = ID's matched
            # 4 = control classes matched
            # i.e. 1 + 2 + 4 = perfect match
        
        return tests.run_tests(controls, tests_to_run)
    def RunTests(self, tests_to_run=None, ref_controls=None):
        "Run the tests on dialog"

        # get all the controls
        controls = [self] + self.Children()

        # add the reference controls
        if ref_controls is not None:
            matched_flags = controlproperties.SetReferenceControls(
                controls, ref_controls)

            # todo: allow some checking of how well the controls matched
            # matched_flags says how well they matched
            # 1 = same number of controls
            # 2 = ID's matched
            # 4 = control classes matched
            # i.e. 1 + 2 + 4 = perfect match

        return tests.run_tests(controls, tests_to_run)