def test_start_no_match():
    target = 'classBackgroundLayer('
    filling = '\n'.join([
        'this is a line',
        'this is another'
        ])
    text = filling
    lines = text.split('\n')
    it = enumerate(lines)

    start_line = get_start_line(it, target)
    assert start_line is None
    # here next should raise StoptIteration
    StopIteration_raised = False
    try:
        six.next(it)
    except __HOLE__:
        StopIteration_raised = True
    assert StopIteration_raised

# start tests for get_endplus_line
# better name can be : seek_end_of_indented_block
dataset/ETHPy150Open los-cocos/cocos/utest/test_uniform_snippet.py/test_start_no_match