(self, config_class)
| 1424 | expected_output = "[section]\noption = None\n\n" |
| 1425 | |
| 1426 | def prepare(self, config_class): |
| 1427 | # This is the default, but that's the point. |
| 1428 | cp = config_class(allow_no_value=False) |
| 1429 | cp.add_section("section") |
| 1430 | cp.set("section", "option", None) |
| 1431 | sio = io.StringIO() |
| 1432 | cp.write(sio) |
| 1433 | return sio.getvalue() |
| 1434 | |
| 1435 | def test_none_as_value_stringified(self): |
| 1436 | cp = configparser.ConfigParser(allow_no_value=False) |
no test coverage detected