Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  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/m/o/mortar-0.1.2/mortar/storage/tests/test_directory.py   mortar(Download)
    def test_directory_does_not_exist(self):
        self.assertRaises(ValueError,Storage,os.path.join(test_dir,'does_not_exist'))
 
    def test_xml_in_field(self):
        self.assertEqual(