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]")
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]")
def test_pformat_list__multiple(): assert_equal(_pformat_list([3, 2, 1]), "[3, 2, 1]")
def test_pformat_list__single(): assert_equal(_pformat_list([3]), "[3]")
def test_pformat_list__empty(): assert_equal(_pformat_list([]), "[]")