def test_inittscope(simulation):
    '\n    Test init_telescope function.\n    '
    simulation._tscope_name = 'GBT'
    simulation.init_telescope()
    simulation._tscope_name = 'Arecibo'
    simulation.init_telescope()
    simulation._tscope_name = 'TestScope'
    simulation.init_telescope()
    simulation._system_name = ['Sys1', 'Sys2']
    simulation._rcvr_fcent = [430, 800]
    simulation._rcvr_bw = [100, 200]
    simulation._rcvr_name = ['R1', 'R2']
    simulation._backend_samprate = [1.5625, 12.5]
    simulation._backend_name = ['B1', 'B2']
    simulation.init_telescope()
    with pytest.raises(RuntimeError):
        simulation._backend_name = ['B1', 'B2', 'B3']
        simulation.init_telescope()
Test init_telescope function.
def test_inittscope(simulation):
    '\n    \n    '
    simulation._tscope_name = 'GBT'
    simulation.init_telescope()
    simulation._tscope_name = 'Arecibo'
    simulation.init_telescope()
    simulation._tscope_name = 'TestScope'
    simulation.init_telescope()
    simulation._system_name = ['Sys1', 'Sys2']
    simulation._rcvr_fcent = [430, 800]
    simulation._rcvr_bw = [100, 200]
    simulation._rcvr_name = ['R1', 'R2']
    simulation._backend_samprate = [1.5625, 12.5]
    simulation._backend_name = ['B1', 'B2']
    simulation.init_telescope()
    with pytest.raises(RuntimeError):
        simulation._backend_name = ['B1', 'B2', 'B3']
        simulation.init_telescope()