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