(self)
| 106 | sys.stderr = orig_stderr |
| 107 | |
| 108 | def test_setattr(self): |
| 109 | options = OptionParser() |
| 110 | options.define("foo", default=1, type=int) |
| 111 | options.foo = 2 |
| 112 | self.assertEqual(options.foo, 2) |
| 113 | |
| 114 | def test_setattr_type_check(self): |
| 115 | # setattr requires that options be the right type and doesn't |
nothing calls this directly
no test coverage detected