(self, version)
| 1145 | uuid = None # to be defined in subclasses |
| 1146 | |
| 1147 | def do_test_standalone_uuid(self, version): |
| 1148 | stdout = io.StringIO() |
| 1149 | with contextlib.redirect_stdout(stdout): |
| 1150 | self.uuid.main() |
| 1151 | output = stdout.getvalue().strip() |
| 1152 | u = self.uuid.UUID(output) |
| 1153 | self.assertEqual(output, str(u)) |
| 1154 | self.assertEqual(u.version, version) |
| 1155 | |
| 1156 | @mock.patch.object(sys, "argv", ["", "-u", "uuid1"]) |
| 1157 | def test_cli_uuid1(self): |
no test coverage detected