mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
466 B
23 lines
466 B
5 years ago
|
from mythril.plugin import MythrilPluginLoader, MythrilPlugin
|
||
|
from mythril.plugin.loader import UnsupportedPluginType
|
||
|
|
||
|
import pytest
|
||
|
|
||
|
|
||
|
def test_typecheck_load():
|
||
|
# Arrange
|
||
|
loader = MythrilPluginLoader()
|
||
|
|
||
|
# Act
|
||
|
with pytest.raises(ValueError):
|
||
|
loader.load(None)
|
||
|
|
||
|
|
||
|
def test_unsupported_plugin_type():
|
||
|
# Arrange
|
||
|
loader = MythrilPluginLoader()
|
||
|
|
||
|
# Act
|
||
|
with pytest.raises(UnsupportedPluginType):
|
||
|
loader.load(MythrilPlugin())
|