def METHOD_NAME(self):
    pt = TablePulseTemplate({'X': [(0, 1), (100, 1)]})
    program = pt.create_program()
    mock_program = mock.Mock(spec=dir(program))
    for attr in dir(Loop):
        if not attr.endswith('_'):
            setattr(mock_program, attr, getattr(program, attr))
    mock_program.__len__ = lambda x: 1
    mock_program.__iter__ = lambda x: iter(program)
    mock_program.__getitem__ = lambda x, idx: program[idx]
    self.assertNotIsInstance(mock_program, Loop)
    render(mock_program, sample_rate=1)