def make_raw_fs(root): mc = Multicorn() binary = Filesystem( 'binary', root_dir=root, pattern='{category}/{num}_{name}.bin', content_property_name='data') text = Filesystem( 'text', root_dir=root, pattern='{category}/{num}_{name}.txt', encoding='utf8') mc.register(binary) mc.register(text) return binary, text
def test_simple_instantiation(): mc = Multicorn() memory_corn = Memory(name="memory", identity_properties=("id",)) memory_corn.register("id") memory_corn.register("name") mc.register(memory_corn)