def create_test(filename):
    'Return a new test function.'

    def test_function(self):
        self._run_notebook(filename)
    return test_function
Return a new test function.
def create_test(filename):
    

    def test_function(self):
        self._run_notebook(filename)
    return test_function