def test_labels_match_geographies(self):
        geo = self.geographies.find_one({ 'geoid': '15' })
        labels = self.labels.find_one({ 'dataset': 'SF1' })

        geo_tables = geo['data']['2010']
        labels_tables = labels['tables']

        self.assertEqual(sorted(geo_tables.keys()), sorted(labels_tables.keys()))

        # Test table has labels
        for table_name, geo_keys in geo_tables.items():
            label_keys = labels_tables[table_name]['labels']

            self.assertEqual(sorted(geo_keys.keys()), sorted(label_keys.keys()))

        for table_name, label_data in labels_tables.items():
            label_keys = label_data['labels']
            geo_keys = geo_tables[table_name]

            self.assertEqual(sorted(geo_keys.keys()), sorted(label_keys.keys()))
Extract all children. If decompose is True, decompose instead.
dataset/ETHPy150Open ireapps/census/dataprocessing/tests_sf.py/TestLabels.test_labels_match_geographies--crossover with--dataset/ETHPy150Open mtlevolio/pylinkchecker/pylinkchecker/bs4/element.py/Tag.clear