Did I find the right examples for you? yes no

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
Fail unless an exception of class excClass is raised
by callableObj when invoked with arguments args and keyword
arguments kwargs. If a different type of exception is
raised, it will not be caught, and the test case will be
deemed to have suffered an error, exactly as for an
unexpected exception.

If called with callableObj omitted or None, will return a
context object used like this::
(more...)

src/p/y/python-creole-1.1.1/creole/tests/test_html2creole.py   python-creole(Download)
        Raise NotImplementedError on unknown tags.
        """
        self.assertRaises(NotImplementedError,
            html2creole,
            html_string="<unknwon>",

src/p/y/python-creole-HEAD/creole/tests/test_html2creole.py   python-creole(Download)
        Raise NotImplementedError on unknown tags.
        """
        self.assertRaises(NotImplementedError,
            html2creole,
            html_string="<unknwon>",

src/p/y/python-creole-1.1.1/creole/tests/test_html2rest.py   python-creole(Download)
    def test_duplicate_substitution1(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
            rest_string="""
                +-----------------------------+
                | this is `same`_ first time. |
    def test_duplicate_link_substitution(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
#        self.cross_compare(
            rest_string="""
                +-----------------------------+
    def test_duplicate_image_substitution(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
#        self.cross_compare(
            rest_string="""
                a |image|...

src/p/y/python-creole-1.1.1/creole/tests/test_setup_utils.py   python-creole(Download)
        path, filename, fd = self._tempfile(b"----")
        try:
            self.assertRaises(SystemExit, get_long_description, path, filename, raise_errors=True)
        finally:
            fd.close()
    def test_wrong_path_with_raise_errors(self):
        self.assertRaises(IOError, get_long_description, "wrong/path", raise_errors=True)
 
    def test_readme_encoding(self):
        long_description = get_long_description(TEST_README_DIR, filename=TEST_README_FILENAME, raise_errors=True)

src/p/y/python-creole-HEAD/creole/tests/test_html2rest.py   python-creole(Download)
    def test_duplicate_substitution1(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
            rest_string="""
                +-----------------------------+
                | this is `same`_ first time. |
    def test_duplicate_link_substitution(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
#        self.cross_compare(
            rest_string="""
                +-----------------------------+
    def test_duplicate_image_substitution(self):
        self.assertRaises(Html2restException, self.assert_html2rest,
#        self.cross_compare(
            rest_string="""
                a |image|...

src/p/y/python-creole-HEAD/creole/tests/test_setup_utils.py   python-creole(Download)
        path, filename, fd = self._tempfile(b"----")
        try:
            self.assertRaises(SystemExit, get_long_description, path, filename, raise_errors=True)
        finally:
            fd.close()
    def test_wrong_path_with_raise_errors(self):
        self.assertRaises(IOError, get_long_description, "wrong/path", raise_errors=True)
 
    def test_readme_encoding(self):
        long_description = get_long_description(TEST_README_DIR, filename=TEST_README_FILENAME, raise_errors=True)