def test130():
    class BadRefClass(AbstractModelReference):
        pass
    
    class Test130(InfraModel):
        ref_class = BadRefClass
        grid = MultiResource(Server("grid", mem="8GB"))
        
    inst = Test130("t130")
    try:
        _ = inst.grid[1]
        assert False, "Should have raised a TypeError about _get_item_ref_obj()"
    except __HOLE__, e:
        assert "get_item_ref_obj" in e.message
dataset/ETHPy150Open haxsaw/actuator/src/tests/infra_tests.py/test130