Test cli for partition-table update and create

Please review it
Thanks
Shouldn't `file` be deleted once the test has no more use for it? Temp files created using `mktemp` don't disappear. I don't know how `NamedTemporaryFile` works (yet), but I assume the same would be true here.