コード例 #1
0
 def test_clear(self):
     manifest.add(self.config, 'common', '*.cpp')
     manifest.add(self.config, 'common', '*.h')
     manifest.add(self.config, 'common', '*.py')
     manifest.clear(self.config, 'common')
     common_manifest = self.config.get_platform('common').manifest
     assert not common_manifest
コード例 #2
0
 def test_clear(self):
     manifest.add(self.config, 'common', '*.cpp')
     manifest.add(self.config, 'common', '*.h')
     manifest.add(self.config, 'common', '*.py')
     manifest.clear(self.config, 'common')
     common_manifest = self.config.get_platform('common').manifest
     assert not common_manifest
コード例 #3
0
 def test_add(self):
     manifest.add(self.config, 'common', '*.cpp')
     manifest.add(self.config, 'common', '*.h')
     manifest.add(self.config, 'common', '*.py')
     common_manifest = self.config.get_platform('common').manifest
     assert ('*.cpp' in common_manifest) and ('*.h' in common_manifest) and ('*.py' in common_manifest)
     assert len(common_manifest) == 3
コード例 #4
0
 def test_add(self):
     manifest.add(self.config, 'common', '*.cpp')
     manifest.add(self.config, 'common', '*.h')
     manifest.add(self.config, 'common', '*.py')
     common_manifest = self.config.get_platform('common').manifest
     assert ('*.cpp' in common_manifest) and (
         '*.h' in common_manifest) and ('*.py' in common_manifest)
     assert len(common_manifest) == 3