def check_seqno_db_equality(db1, db2):
    if ((db1._keyValueStorage._db is None) or (db2._keyValueStorage._db is None)):
        return False
    assert (db1.size == db2.size), '{} != {}'.format(db1.size, db2.size)
    assert ({bytes(k): bytes(v) for (k, v) in db1._keyValueStorage.iterator()} == {bytes(k): bytes(v) for (k, v) in db2._keyValueStorage.iterator()})
def check_seqno_db_equality(db1, db2):
    if ((db1._keyValueStorage._db is None) or (db2._keyValueStorage._db is None)):
        return False
    assert (db1.size == db2.size), '{} != {}'.format(db1.size, db2.size)
    assert ({bytes(k): bytes(v) for (k, v) in db1._keyValueStorage.iterator()} == {bytes(k): bytes(v) for (k, v) in db2._keyValueStorage.iterator()})