예제 #1
0
def test_draw_default_line():
    results = Utils.draw_line()
    expected = "-=--=--=--=--=--=--=--=--=--=--=--=--=--"
    assert results == expected
예제 #2
0
def test_draw_no_characters():
    results = Utils.draw_line(characters="1234567890", length=0)
    expected = ""
    assert results == expected
예제 #3
0
def test_draw_line_two_characters_from_six():
    results = Utils.draw_line(characters="123456", length=2)
    expected = "12"
    assert results == expected
예제 #4
0
def test_draw_no_line():
    results = Utils.draw_line(length=0)
    expected = ""
    assert results == expected
예제 #5
0
def test_draw_line_eleven_dash_dots():
    results = Utils.draw_line(characters="-.", length=11)
    expected = "-.-.-.-.-.-"
    assert results == expected
예제 #6
0
def test_draw_line_ten_dashes():
    results = Utils.draw_line(characters="-", length=10)
    expected = "----------"
    assert results == expected
예제 #7
0
def test_draw_line_ten_spaces():
    results = Utils.draw_line(characters=" ", length=10)
    expected = "          "
    assert results == expected