def test_read_czk():
    line = rt.read("""{date: '2014-05-06', quantity: 19000, account: 'trd', owner: 'bruce'}""")

    assert line['account'] == 'trd'
    assert line['quantity'] == 19000
    assert line['owner'] == 'bruce'
    assert line['date'] == "2014-05-06"
    assert line['pd_timestamp'] == pd.Timestamp("2014-05-06")
    assert line['dt_date'] == date(2014, 5, 6)
def test_read():
    line = rt.read("""{date: '2014-05-06', ticker: 'tsla', quantity: 2, quoted_in: 'usd', price: 123.4, owner: 'elon'}""")

    assert line['ticker'] == 'tsla'
    assert line['quantity'] == 2
    assert line['price'] == 123.4
    assert line['date'] == "2014-05-06"
    assert line['quoted_in'] == 'usd'
    assert line['owner'] == 'elon'
    assert line['pd_timestamp'] == pd.Timestamp("2014-05-06")
    assert line['dt_date'] == date(2014, 5, 6)