def test_assert_raises(self):
        path = os.path.join('/example_directory', 'invalid_file_name')
        self.assert_raises(ExampleException, example_function, path)
Test whether a given function raises a given exception
dataset/ETHPy150Open garethr/django-test-extensions/src/test_extensions/examples/examples.py/Examples.test_assert_raises