コード例 #1
0
def test10_fileoutput( ):
    out = StringIO( )
    opencloseresults( out = out )
    output = out.getvalue( )
    assert '90.00' not in output    # data result not in any of the columns
コード例 #2
0
def test8_fileoutput( ):
    out = StringIO( )
    opencloseresults( out = out )
    output = out.getvalue( )
    assert '11/1/14' not in output    # date does not exist
コード例 #3
0
def test9_fileoutput( ):
    out = StringIO( )
    opencloseresults( out = out )
    output = out.getvalue( )
    assert '89.08' in output    # beginning data result in one of the columns
コード例 #4
0
def test6_fileoutput( ):
    out = StringIO( )
    opencloseresults( out = out )
    output = out.getvalue( )
    assert '10/1/14' in output   # beginning date
コード例 #5
0
def test7_fileoutput( ):
    out = StringIO( )
    opencloseresults( out = out )
    output = out.getvalue( )
    assert '10/3/94' in output    # ending date
コード例 #6
0
def test10_fileoutput():
    out = StringIO()
    opencloseresults(out=out)
    output = out.getvalue()
    assert '90.00' not in output  # data result not in any of the columns
コード例 #7
0
def test9_fileoutput():
    out = StringIO()
    opencloseresults(out=out)
    output = out.getvalue()
    assert '89.08' in output  # beginning data result in one of the columns
コード例 #8
0
def test8_fileoutput():
    out = StringIO()
    opencloseresults(out=out)
    output = out.getvalue()
    assert '11/1/14' not in output  # date does not exist
コード例 #9
0
def test7_fileoutput():
    out = StringIO()
    opencloseresults(out=out)
    output = out.getvalue()
    assert '10/3/94' in output  # ending date
コード例 #10
0
def test6_fileoutput():
    out = StringIO()
    opencloseresults(out=out)
    output = out.getvalue()
    assert '10/1/14' in output  # beginning date