19 lines
524 B
Python
19 lines
524 B
Python
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
|