(self)
| 600 | del cls.opts |
| 601 | |
| 602 | def update_module(self): |
| 603 | self.count += 1 |
| 604 | with salt.utils.files.fopen(self.module_path, "wb") as fh: |
| 605 | fh.write( |
| 606 | salt.utils.stringutils.to_bytes( |
| 607 | module_template.format(count=self.count) |
| 608 | ) |
| 609 | ) |
| 610 | fh.flush() |
| 611 | os.fsync(fh.fileno()) # flush to disk |
| 612 | |
| 613 | # .pyc files are prevented by sys.dont_write_bytecode = True in setUp() |
| 614 | |
| 615 | def rm_module(self): |
| 616 | os.unlink(self.module_path) |
no test coverage detected