Пример #1
0
 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'])
Пример #2
0
 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'])
Пример #3
0
 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'])
Пример #4
0
 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'])
Пример #5
0
 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'])
Пример #6
0
 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'])