def test_dispatcher(self, _format, method, mocker):
     lower_format = _format.lower()
     mocky = mocker.patch.object(BookmarksConverter, method)
     instance = BookmarksConverter("filepath")
     instance._export = lower_format
     instance._format = lower_format
     instance._dispatcher(method)
     mocky.assert_called_once()
 def test_dispatcher_error(self):
     instance = BookmarksConverter("filepath")
     instance._format = "wrong format"
     with pytest.raises(TypeError) as e:
         instance._dispatcher("method")