Created
November 7, 2018 10:08
-
-
Save berggren/f4244013fbd3149115e64ab64ebffd0d to your computer and use it in GitHub Desktop.
Example test for sketch analyzer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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