Пример #1
0
def test_flinp_simplereq(cmd=None):
    flinp=Flinp()
    query = "ECB_BSI1/M.AT.N.A.AXG.A.1.U4.0000.Z01.E"
    res = flinp.request(query)
    data = res[query]._data
    metadata = res[query]._metadata
    nrec = int(metadata['NUM. EFF. REC.D'])
    nval = len(data)
    assert nrec == nval
Пример #2
0
def test_flinp_req_q_start(cmd=None):
    flinp=Flinp()
    query = "ECB_BSI1/M.AT.N.A.AXG.A.1.U4.0000.Z01.E"
    res = flinp.request(query,start='2009001',end='2010012')
    data = res[query]._data
    metadata = res[query]._metadata
    nrec = int(metadata['NUM. EFF. REC.D'])
    nval = len(data)
    # pprint.pprint(data)
    assert nrec == nval
Пример #3
0
def test_flinp_raise_exc02(cmd=None):
    flinp=Flinp()
    query = "ECB_BSI1/XM.AT.N.A.AXG.A.1.U4.0000.Z01.E"
    res = flinp.request(query)