def test_returns_helper(self): with mock.patch('bokeh.util.version._base_version_helper') as helper: buv.base_version() assert helper.called