Ejemplo n.º 1
0
def test_find_empty_list_MyList():
    test_string = MyList()
    assert test_string.find_MyList(MyList("test")) == -1
Ejemplo n.º 2
0
def test_find_valid_MyList():
    test_string = MyList("teststring")
    assert test_string.find_MyList(MyList("rin")) == 6
Ejemplo n.º 3
0
def test_find_invalid_MyList():
    test_string = MyList("teststring")
    assert test_string.find_MyList(MyList("zoo")) == -1
Ejemplo n.º 4
0
def test_find_invalid_char():
    test_string = MyList("teststring")
    assert test_string.find_MyList("z") == -1
Ejemplo n.º 5
0
def test_find_empty_list_MyList():
    test_string = MyList()
    assert test_string.find_MyList(MyList("test")) == -1
Ejemplo n.º 6
0
def test_find_invalid_MyList():
    test_string = MyList("teststring")
    assert test_string.find_MyList(MyList("zoo")) == -1
Ejemplo n.º 7
0
def test_find_valid_MyList():
    test_string = MyList("teststring")
    assert test_string.find_MyList(MyList("rin")) == 6
Ejemplo n.º 8
0
def test_find_invalid_char():
    test_string = MyList("teststring")
    assert test_string.find_MyList("z") == -1