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
def test_printsnapshot(): filename = gettempfilename() examples.createticks(filename, 10) TeaFile.printsnapshot(filename)
def test_sumprices(): filename = gettempfilename() examples.createticks(filename, 10) examples.sumprices(filename)
def test_analyzeticks(): filename = gettempfilename() examples.createticks(filename, 10) examples.analyzeticks(filename)