def test_toolselection_factory():
    stmt = ToolSelectionStmt.from_excellon('T01')
    assert_equal(stmt.tool, 1)
    assert_equal(stmt.compensation_index, None)
    stmt = ToolSelectionStmt.from_excellon('T0223')
    assert_equal(stmt.tool, 2)
    assert_equal(stmt.compensation_index, 23)
    stmt = ToolSelectionStmt.from_excellon('T042')
    assert_equal(stmt.tool, 42)
    assert_equal(stmt.compensation_index, None)
Internal method to streamline our requests / json getting
dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/tests/test_excellon_statements.py/test_toolselection_factory--crossover with--dataset/ETHPy150Open seemethere/nba_py/nba_py/__init__.py/_get_json