Пример #1
0
 def test_process_bases(self):
     yaml_id = 'dirname/filename'
     package_name = 'package'
     bases = ['PA2_minimum_gri.srd', '#base']
     expected = ['package.PA2_minimum_gri.srd',
                 'package:dirname/filename#base']
     self.assertEqual(
         SpecificationSet._process_bases(bases, package_name, yaml_id),
         expected
     )
Пример #2
0
 def test_process_bases_known_yaml_id(self):
     """Process bases when a partial already has a yaml path."""
     yaml_id = 'dirname/filename'
     package_name = 'package'
     bases = ['PA2_minimum_gri.srd', 'otherdir/otherfile#base']
     expected = ['package.PA2_minimum_gri.srd',
                 'package:otherdir/otherfile#base']
     self.assertEqual(
         SpecificationSet._process_bases(bases, package_name, yaml_id),
         expected
     )