Did I find the right examples for you? yes no

All Samples(39)  |  Call(39)  |  Derive(0)  |  Import(0)
Cause this test to be skipped.

This raises self.skipException(reason). skipException is raised
to permit a skip to be triggered at any point (during setUp or the
testMethod itself). The run() method catches skipException and
translates that into a call to the result objects addSkip method.

:param reason: The reason why the test is being skipped. This must
    support being cast into a unicode string for reporting.

src/b/a/barbican-HEAD/barbican/tests/crypto/test_dogtag_crypto.py   barbican(Download)
    def test_generate(self):
        if not imports_ok:
            self.skipTest("Dogtag imports not available")
        secret = models.Secret()
        secret.bit_length = 128
    def test_generate_non_supported_algorithm(self):
        if not imports_ok:
            self.skipTest("Dogtag imports not available")
        secret = models.Secret()
        secret.bit_length = 128
    def test_raises_error_with_no_pem_path(self):
        if not imports_ok:
            self.skipTest("Dogtag imports not available")
        m = mock.MagicMock()
        m.dogtag_crypto_plugin = mock.MagicMock(pem_path=None)
    def test_raises_error_with_no_pem_password(self):
        if not imports_ok:
            self.skipTest("Dogtag imports not available")
        m = mock.MagicMock()
        m.dogtag_crypto_plugin = mock.MagicMock(pem_password=None)
    def test_raises_error_with_no_nss_password(self):
        if not imports_ok:
            self.skipTest("Dogtag imports not available")
        m = mock.MagicMock()
        m.dogtag_crypto_plugin = mock.MagicMock(nss_password=None)

src/t/e/testtools-0.9.35/testtools/tests/test_run.py   testtools(Download)
    def setUp(self):
        super(TestRun, self).setUp()
        if fixtures is None:
            self.skipTest("Need fixtures")
 
    def test_run_list_failed_import(self):
        if not run.have_discover:
            self.skipTest("Need discover")
        broken = self.useFixture(SampleTestFixture(broken=True))
        out = StringIO()
    def test_load_list_preserves_custom_suites(self):
        if testresources is None:
            self.skipTest("Need testresources")
        self.useFixture(SampleResourcedFixture())
        # We load two tests, not loading one. Both share a resource, so we

src/t/e/testtools-HEAD/testtools/tests/test_run.py   testtools(Download)
    def setUp(self):
        super(TestRun, self).setUp()
        if fixtures is None:
            self.skipTest("Need fixtures")
 
    def test_run_list_failed_import(self):
        if not run.have_discover:
            self.skipTest("Need discover")
        broken = self.useFixture(SampleTestFixture(broken=True))
        out = StringIO()
    def test_load_list_preserves_custom_suites(self):
        if testresources is None:
            self.skipTest("Need testresources")
        self.useFixture(SampleResourcedFixture())
        # We load two tests, not loading one. Both share a resource, so we

src/t/e/testtools-0.9.35/testtools/tests/test_fixturesupport.py   testtools(Download)
    def setUp(self):
        super(TestFixtureSupport, self).setUp()
        if fixtures is None or LoggingFixture is None:
            self.skipTest("Need fixtures")
 

src/t/e/testtools-HEAD/testtools/tests/test_fixturesupport.py   testtools(Download)
    def setUp(self):
        super(TestFixtureSupport, self).setUp()
        if fixtures is None or LoggingFixture is None:
            self.skipTest("Need fixtures")
 

src/o/s/oslo.rootwrap-1.2.0/tests/test_rootwrap.py   oslo.rootwrap(Download)
    def test_KillFilter(self):
        if not os.path.exists("/proc/%d" % os.getpid()):
            self.skipTest("Test requires /proc filesystem (procfs)")
        p = subprocess.Popen(["cat"], stdin=subprocess.PIPE,
                             stdout=subprocess.PIPE,

src/p/y/pybars-0.0.4/pybars/tests/test_acceptance.py   pybars(Download)
    def test_using_a_quote_in_the_middle_of_a_parameter_raises_an_error(self):
        self.skipTest("<end> causes the grammar to fail weirdly!")
        compiler = Compiler()
        self.assertRaises(Exception,
            compiler.compile, u'Message: {{hello wo"rld"}}')

src/p/y/pybars-HEAD/pybars/tests/test_acceptance.py   pybars(Download)
    def test_using_a_quote_in_the_middle_of_a_parameter_raises_an_error(self):
        self.skipTest("<end> causes the grammar to fail weirdly!")
        compiler = Compiler()
        self.assertRaises(Exception,
            compiler.compile, u'Message: {{hello wo"rld"}}')

src/s/m/smiley-HEAD/smiley/tests/test_tracer.py   smiley(Download)
        # a builtin.
        if not hasattr(atexit, '__file__'):
            self.skipTest('atexit is a builtin')
        t = tracer.Tracer(None, include_stdlib=False)
        self.assertTrue(t._should_ignore_file(atexit.__file__))

src/t/e/testtools-0.9.35/testtools/tests/test_distutilscmd.py   testtools(Download)
    def setUp(self):
        super(TestCommandTest, self).setUp()
        if fixtures is None:
            self.skipTest("Need fixtures")
 

  1 | 2  Next