From 314c7ea41a47a557ea902e3319837292ee1f12ce Mon Sep 17 00:00:00 2001 From: Lev Berman Date: Mon, 3 Sep 2018 12:07:48 +0200 Subject: [PATCH] Assert abci_chains indexes --- tests/backend/localmongodb/test_schema.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/backend/localmongodb/test_schema.py b/tests/backend/localmongodb/test_schema.py index f7ae1bda..aeadbe05 100644 --- a/tests/backend/localmongodb/test_schema.py +++ b/tests/backend/localmongodb/test_schema.py @@ -46,6 +46,9 @@ def test_init_creates_db_tables_and_indexes(): indexes = conn.conn[dbname]['validators'].index_information().keys() assert set(indexes) == {'_id_', 'height'} + indexes = conn.conn[dbname]['abci_chains'].index_information().keys() + assert set(indexes) == {'_id_', 'height', 'chain_id'} + def test_init_database_fails_if_db_exists(): import bigchaindb