def METHOD_NAME(self):
    pkg_dir, dist = self.create_dist()
    cmd = build_clib(dist)
    cmd.include_dirs = 'one-dir'
    cmd.finalize_options()
    self.assertEqual(cmd.include_dirs, ['one-dir'])
    cmd.include_dirs = None
    cmd.finalize_options()
    self.assertEqual(cmd.include_dirs, [])
    cmd.distribution.libraries = 'WONTWORK'
    self.assertRaises(DistutilsSetupError, cmd.finalize_options)