(self)
| 44 | assert_equal(titles, components) |
| 45 | |
| 46 | def dump_help(self): |
| 47 | dump_dir = os.path.join(self.options.tmpdir, 'rpc_help_dump') |
| 48 | os.mkdir(dump_dir) |
| 49 | calls = [line.split(' ', 1)[0] for line in self.nodes[0].help().splitlines() if line and not line.startswith('==')] |
| 50 | for call in calls: |
| 51 | with open(os.path.join(dump_dir, call), 'w', encoding='utf-8') as f: |
| 52 | # Make sure the node can generate the help at runtime without crashing |
| 53 | f.write(self.nodes[0].help(call)) |
| 54 | |
| 55 | |
| 56 | if __name__ == '__main__': |