def test_position_class_instantiates_with_data(): simple_fixture() with freeze_time(dt(2017, 3, 7)): vcn = Position("VCN.TO", data=Data()) assert vcn is not None assert vcn.ticker_name == "VCN.TO" assert "total_returns" in vcn.__repr__() assert "total_returns" in str(vcn) simple_fixture_teardown()
def test_position_class_instantiates(): vcn = Position("VCN.TO", data=Data()) assert vcn is not None assert vcn.ticker_name == "VCN.TO" assert "Empty" in vcn.__repr__() assert "Empty" in str(vcn)