Пример #1
0
    def test_frameworks_unsupported(self):
        env = make_env('linux')
        with self.assertRaises(PackageResolutionError):
            packages.framework(env, 'name')

        with self.assertRaises(PackageResolutionError):
            packages.framework(env, 'name', 'suffix')
Пример #2
0
 def test_framework_suffix(self):
     env = make_env('macos')
     self.assertEqual(
         packages.framework(env, 'name', 'suffix'),
         CommonPackage('name,suffix',
                       env.target_platform.object_format,
                       link_options=opts.option_list(
                           opts.lib(Framework('name', 'suffix')))))