def test_get_compatible_tool(): r"""Test get_compatible_tool when default provided.""" assert_raises(ValueError, CompiledModelDriver.get_compatible_tool, 'invalid', 'compiler', 'c') assert_equal( CompiledModelDriver.get_compatible_tool('invalid', 'compiler', 'c', default=None), None)
def test_get_compatible_tool(): r"""Test get_compatible_tool when default provided.""" with pytest.raises(ValueError): CompiledModelDriver.get_compatible_tool('invalid', 'compiler', 'c') assert (CompiledModelDriver.get_compatible_tool( 'invalid', 'compiler', 'c', default=None) is None)