Exemple #1
0
 def test_get_subregions(self):
     registry = IsoRegistry()
     registry.register('RE', self.region)
     registry.register('RE-SR', self.subregion)
     registry.register('OR-SR', self.subregion)
     subregions = registry.get_subregions('RE')
     self.assertIn('RE-SR', subregions)
     self.assertEqual(1, len(subregions))
Exemple #2
0
 def test_get_subregions(self):
     registry = IsoRegistry(load_standard_modules=False)
     registry.register('RE', self.region)
     registry.register('RE-SR', self.subregion)
     registry.register('OR-SR', self.subregion)
     subregions = registry.get_subregions('RE')
     self.assertIn('RE-SR', subregions)
     self.assertEqual(1, len(subregions))
Exemple #3
0
 def test_get_subregions(self):
     registry = IsoRegistry()
     registry.register('RE', self.region)
     registry.register('RE-SR', self.subregion)
     registry.register('OR-SR', self.subregion)
     subregions = registry.get_subregions('RE')
     self.assertIn('RE-SR', subregions)
     self.assertEqual(1, len(subregions))