def test_to_config():
    mds1 = ZenMLMetadataStore()

    # disallow to/from_config for the base class by checking against
    # factory keys
    with pytest.raises(AssertionError):
        mds1.to_config()
def test_to_from_config(equal_md_stores):
    mds1 = ZenMLMetadataStore()

    mds2 = ZenMLMetadataStore.from_config(mds1.to_config())

    # TODO: This fails because from_config throws (base store is
    #  not in the factory)
    assert equal_md_stores(mds1, mds2, loaded=True)