Skip to content
Snippets Groups Projects
Select Git revision
  • 21f7fe860331658b6d34a6c1aba26a3a07c2e891
  • master default protected
  • develop protected
  • conda
  • 3.6.0
  • 3.5.0
  • 3.4.2
  • 3.4.1
  • 3.4.0
  • 3.4.0-rc2
  • 3.4.0-rc
  • 3.3.1
  • 3.3.1-rc
  • 3.3.0
  • 3.3.0-rc2
  • 3.3.0-rc
  • 3.2.1
  • 3.2.1-rc
  • 3.2.0
  • 3.2.0-rc
  • 3.1.1
  • 3.1.1-rc2
  • 3.1.1-rc
  • 3.1.0
24 results

test_action_help.py

Blame
  • test_action_help.py 1.28 KiB
    # Copyright (c) 2013-2020, SIB - Swiss Institute of Bioinformatics and
    #                          Biozentrum - University of Basel
    # 
    # Licensed under the Apache License, Version 2.0 (the "License");
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    # 
    #   http://www.apache.org/licenses/LICENSE-2.0
    # 
    # Unless required by applicable law or agreed to in writing, software
    # distributed under the License is distributed on an "AS IS" BASIS,
    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    
    """
    Unit tests for the 'help' action.
    
    We do not test much here so this is a perfect example on how to test Promod3
    actions.
    """
    import sys
    
    # this is needed so there will be no test_actions.pyc created in the source
    # directory
    sys.dont_write_bytecode = True
    
    import test_actions
    
    class HelpActionTests(test_actions.ActionTestCase):
        def __init__(self, *args, **kwargs):
            test_actions.ActionTestCase.__init__(self, *args, **kwargs)
            self.pm_action = 'help'
    
        def testExit0(self):
            self.RunExitStatusTest(0, list())
    
    if __name__ == "__main__":
        from ost import testutils
        testutils.RunTests()