Did I find the right examples for you? yes no

All Samples(14)  |  Call(12)  |  Derive(0)  |  Import(2)

src/t/m/tmuxp-0.1.11/tmuxp/testsuite/util.py   tmuxp(Download)
 
from .. import exc
from ..util import has_required_tmux_version, run_before_script
from ..exc import BeforeLoadScriptNotExists, BeforeLoadScriptError
 
    def test_no_arg_uses_tmux_version(self):
        result = has_required_tmux_version()
        self.assertRegexpMatches(result, r'[0-9]\.[0-9]')
 
    def test_ignores_letter_versions(self):
 
        """
        result = has_required_tmux_version('1.9a')
        self.assertRegexpMatches(result, r'[0-9]\.[0-9]')
 
        result = has_required_tmux_version('1.8a')
    def test_error_version_less_1_7(self):
        with self.assertRaisesRegexp(exc.TmuxpException, 'tmuxp only supports'):
            has_required_tmux_version('1.7')
 
        with self.assertRaisesRegexp(exc.TmuxpException, 'tmuxp only supports'):

src/t/m/tmuxp-HEAD/tmuxp/testsuite/util.py   tmuxp(Download)
 
from .. import exc
from ..util import has_required_tmux_version, run_before_script
from ..exc import BeforeLoadScriptNotExists, BeforeLoadScriptError
 
    def test_no_arg_uses_tmux_version(self):
        result = has_required_tmux_version()
        self.assertRegexpMatches(result, r'[0-9]\.[0-9]')
 
    def test_ignores_letter_versions(self):
 
        """
        result = has_required_tmux_version('1.9a')
        self.assertRegexpMatches(result, r'[0-9]\.[0-9]')
 
        result = has_required_tmux_version('1.8a')
    def test_error_version_less_1_7(self):
        with self.assertRaisesRegexp(exc.TmuxpException, 'tmuxp only supports'):
            has_required_tmux_version('1.7')
 
        with self.assertRaisesRegexp(exc.TmuxpException, 'tmuxp only supports'):