Exemplo n.º 1
0
def testConstruction(oneImageBidsI, sampleBidsEntities):
    runWithoutEntities = BidsRun()
    assert runWithoutEntities is not None
    assert len(runWithoutEntities.getRunEntities()) == 0

    runWithEntities = BidsRun(**sampleBidsEntities)
    assert runWithEntities is not None
    assert runWithEntities.getRunEntities() == sampleBidsEntities
Exemplo n.º 2
0
def testAppendSetEntities(oneImageBidsI, sampleBidsEntities):
    run = BidsRun()
    run.appendIncremental(oneImageBidsI)
    assert run.getRunEntities() == sampleBidsEntities