def test_add_row():
    report = Report(4)

    report.add_row(Row("Fred", "Roberts", "MO"))

    # this is testing using and internal
    # implementation detail, which ou want to be careful of
    # but it will catch an error in the add_row, even when
    # the other methods are not yet written
    assert report.size() == 1
예제 #2
0
from report import Report

r = Report()
r.add_row("192.168.1.1")
r.add_row("walla.co.il")