Skip to content

Instantly share code, notes, and snippets.

@berggren
Created November 7, 2018 10:08
Show Gist options
  • Save berggren/f4244013fbd3149115e64ab64ebffd0d to your computer and use it in GitHub Desktop.
Save berggren/f4244013fbd3149115e64ab64ebffd0d to your computer and use it in GitHub Desktop.
Example test for sketch analyzer
"""Tests for aggregations."""
from __future__ import unicode_literals
import mock
from timesketch.lib.analyzers.the_sketch_analyzer import TheSketchAnalyzer
from timesketch.lib.testlib import BaseTest
from timesketch.lib.testlib import MockDataStore
class TestTheSketchAnalyzer(BaseTest):
"""Tests the functionality of the analyzer."""
def __init__(self, *args, **kwargs):
super(TestTheSketchAnalyzer, self).__init__(*args, **kwargs)
# Mock the Elasticsearch datastore.
@mock.patch(
u'timesketch.lib.analyzers.interface.ElasticsearchDataStore',
MockDataStore)
def test_analyzer(self):
"""Test analyzer."""
# TODO: Write actual tests here.
self.assertIsEqual(True, False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment