Example #1
0
def test_pformat_list__wrapped():
    assert_equal(_pformat_list([3, 2, 1], width = 1), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 2), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 3), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 4), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 5), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 6), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 7), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 8), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 9), "[3, 2, 1]")
    assert_equal(_pformat_list([3, 2, 1], width = 10), "[3, 2, 1]")
Example #2
0
def test_pformat_list__wrapped():
    assert_equal(_pformat_list([3, 2, 1], width=1), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=2), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=3), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=4), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=5), "[3,\n 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=6), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=7), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=8), "[3, 2,\n 1]")
    assert_equal(_pformat_list([3, 2, 1], width=9), "[3, 2, 1]")
    assert_equal(_pformat_list([3, 2, 1], width=10), "[3, 2, 1]")
Example #3
0
def test_pformat_list__multiple():
    assert_equal(_pformat_list([3, 2, 1]), "[3, 2, 1]")
Example #4
0
def test_pformat_list__single():
    assert_equal(_pformat_list([3]), "[3]")
Example #5
0
def test_pformat_list__empty():
    assert_equal(_pformat_list([]), "[]")
Example #6
0
def test_pformat_list__multiple():
    assert_equal(_pformat_list([3, 2, 1]), "[3, 2, 1]")
Example #7
0
def test_pformat_list__single():
    assert_equal(_pformat_list([3]), "[3]")
Example #8
0
def test_pformat_list__empty():
    assert_equal(_pformat_list([]), "[]")