2953
2953
# totally fake, we don't care: the messages are only validated on run
2954
2954
self.action_queue.upload('foo', 'bar', 0, 0, 0, 0, 'path', StringIO)
2955
2955
first_cmd = self.action_queue.queue.waiting[0]
2956
self.action_queue.download('foo', 'bar', 0, 'path', 0)
2956
self.action_queue.download('foo', 'bar', 0, 'path')
2957
2957
self.assertEqual(len(self.action_queue.queue.waiting), 1)
2958
2958
self.assertTrue(first_cmd.cancelled)
2959
2959
self.assertTrue(self.handler.check_debug("Previous command cancelled",