def METHOD_NAME(self, mock_openvasdb):
    mock_openvasdb.find_database_by_pattern.return_value = ('foo', 1)
    redis_mock = mock.MagicMock()
    path_mock = mock.MagicMock()
    notus = Notus(path_mock, Cache(redis_mock))
    self.assertEqual(mock_openvasdb.find_database_by_pattern.call_count, 1)
    self.assertEqual(notus.cache.ctx, 'foo')