Test removing the payload.
()
| 246 | |
| 247 | @pytest.mark.skipif(sys.platform != "win32", reason="Windows only") |
| 248 | def test_payload_remove(): |
| 249 | """Test removing the payload.""" |
| 250 | info = mock_info.copy() |
| 251 | payload = Payload(info) |
| 252 | payload.prepare() |
| 253 | root = payload.root |
| 254 | |
| 255 | assert root.is_dir() |
| 256 | payload.remove() |
| 257 | assert not root.is_dir() |
| 258 | |
| 259 | |
| 260 | @pytest.mark.skipif(sys.platform != "win32", reason="Windows only") |