def test_builder9(self): """test unset option (set to None)""" builder = Builder() builder.abc = 'def' builder.test = 'test123' builder.jobs = 42 builder.abc = None builder.jobs = None self.assertEqual(builder.opts(), ['--test', 'test123'])
def test_builder11(self): """test unset option (set to None via del)""" builder = Builder() builder.abc = 'def' builder.test = 'test123' builder.jobs = 42 del builder.abc del builder.jobs self.assertEqual(builder.opts(), ['--test', 'test123'])
def test_builder10(self): """test unset option (set to None via set)""" builder = Builder() builder.abc = 'def' builder.test = 'test123' builder.jobs = 42 builder.set('abc', None) builder.set('jobs', None) self.assertEqual(builder.opts(), ['--test', 'test123'])