tests: add dir() assertion

This commit is contained in:
gcarq 2018-06-23 11:57:26 +02:00
parent 4bd61df3a7
commit 818a6b12ed

View File

@ -1,5 +1,4 @@
# pragma pylint: disable=missing-docstring, protected-access, C0103 # pragma pylint: disable=missing-docstring, protected-access, C0103
import logging import logging
import os import os
@ -22,6 +21,8 @@ def test_import_strategy(caplog):
imported_strategy = import_strategy(strategy) imported_strategy = import_strategy(strategy)
assert dir(strategy) == dir(imported_strategy)
assert imported_strategy.__module__ == 'freqtrade.strategy' assert imported_strategy.__module__ == 'freqtrade.strategy'
assert imported_strategy.some_method() == 42 assert imported_strategy.some_method() == 42