def test_1():
    result = create_donors_report(test_data())
    print(result)
    # assert False
    assert len(result) == len(TEST_DATA)
    donor = result[1]
    assert donor[-1] == donor[1] / donor[2]
    assert result[0][1] > result[-1][1]
示例#2
0
def test_1():
    result = create_donors_report(test_data())

    print(results)

    assert len(result) == len(TEST_DATA)
    #supposed to be a random assert statement
    donor = result[1]
    assert result[-1] == donor[2] / donor[1]

    assert result[0][2] > result[-1][1]
    assert False
示例#3
0
#Tim Pauley
#python 201a
#date Nov 20 2018

from refactor import test_data, create_donors_report

TEST_DATA = test_data()


def test_1():
    result = create_donors_report(TEST_DATA)

    print(result)

    assert len(result) == len(TEST_DATA)
    donor = result[1]
    assert donor[-1] == donor[1] / donor[2]

    assert result[0][1] > result[-1][1]