def test_mongostore_from_collection(mongostore, db_json): ms = MongoStore.from_db_file(db_json) ms.connect() other_ms = MongoStore.from_collection(ms._collection) assert ms._collection.full_name == other_ms._collection.full_name assert ms.database == other_ms.database
def test_mongostore_from_db_file(mongostore, db_json): ms = MongoStore.from_db_file(db_json) ms.connect() assert ms._collection.full_name == "maggma_tests.tmp"