def test_multiple_flags(self): self.assertTrue(dsl.hasCompileFlag(self.config, '-O1 -Dhello'))
def test_flag_exists(self): self.assertTrue(dsl.hasCompileFlag(self.config, '-O1'))
def test_nonexistent_flag(self): self.assertFalse( dsl.hasCompileFlag(self.config, '-this_is_not_a_flag_any_compiler_has'))
def test_no_flag_should_work(self): self.assertTrue(dsl.hasCompileFlag(self.config, ''))