Beispiel #1
0
def test_createticks():
    filename = gettempfilename()
    examples.createticks(filename, 10)
    assert os.path.exists(filename)
    assert os.path.getsize(filename) > 10 * 24
    with TeaFile.openread(filename) as tf:
        assert tf.itemcount == 10
Beispiel #2
0
def test_printsnapshot():
    filename = gettempfilename()
    examples.createticks(filename, 10)
    TeaFile.printsnapshot(filename)
Beispiel #3
0
def test_sumprices():
    filename = gettempfilename()
    examples.createticks(filename, 10)
    examples.sumprices(filename)
Beispiel #4
0
def test_analyzeticks():
    filename = gettempfilename()
    examples.createticks(filename, 10)
    examples.analyzeticks(filename)