city_retrofit/unittests/test_usage_catalog.py

18 lines
574 B
Python
Raw Normal View History

2022-05-17 22:22:40 -04:00
"""
TestUsageCatalog
SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2022 Concordia CERC group
Project Coder Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
"""
from unittest import TestCase
from catalog_factories.usage_catalog_factory import UsageCatalogFactory
class TestConstructionCatalog(TestCase):
def test_comnet_catalog(self):
catalog = UsageCatalogFactory('comnet').catalog
self.assertIsNotNone(catalog, 'catalog is none')
2022-05-19 14:24:24 -04:00
content = catalog.entries()
self.assertEqual(len(content.usages), 32, 'Wrong number of usages')