def test_solidity_compiler_not_available(): with pytest.raises(ValueError): get_compiler_for_file('Example.sol')
def test_solidity_compiler(): compiler = get_compiler_for_file('Example.sol') assert compiler == solc
def test_unknown_contract_extensions(filename): with pytest.raises(ValueError): get_compiler_for_file(filename)