def METHOD_NAME(self, mocked_currentframe, mocked_create_test_file):
    path = "foo.ipynb"
    ret = Checker.check(path)
    mocked_create_test_file.assert_called_once_with(path, test_name=None)
    mocked_currentframe.assert_called_once()
    mocked_create_test_file.return_value.run.assert_called_once_with(
        mocked_currentframe.return_value.f_back.f_globals)
    assert ret is mocked_create_test_file.return_value