def test_extend_with_other_options(self): options = CMakeOptions() options.define('FOO', 'foo') options.define('BAR', True) derived = CMakeOptions() derived.extend(options) self.assertIn('-DFOO=foo', derived) self.assertIn('-DBAR=TRUE', derived)
def test_extend_with_tuples(self): options = CMakeOptions() options.extend([('FOO', 'foo'), ('BAR', True)]) self.assertIn('-DFOO=foo', options) self.assertIn('-DBAR=TRUE', options)