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
def testAppendSetEntities(oneImageBidsI, sampleBidsEntities): run = BidsRun() run.appendIncremental(oneImageBidsI) assert run.getRunEntities() == sampleBidsEntities