habitmove/tests/test_parser.py

20 lines
524 B
Python
Raw Normal View History

2021-12-16 12:11:49 +00:00
from habitmove.parser import Parser, NomieParser
def test_parser_interface_exists():
sut = Parser()
assert type(sut) == Parser
def test_parser_interface_contains_methods():
sut = Parser()
assert sut.__getattribute__("parse") != None
assert sut.__getattribute__("extract_version") != None
assert sut.__getattribute__("extract_trackers") != None
assert sut.__getattribute__("extract_events") != None
def test_nomie_parser_exists():
sut = NomieParser()
assert type(sut) == NomieParser