示例#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