def METHOD_NAME(self):
    """Test cancel command with no arguments."""
    series_cmd: commands.RunSeries = commands.get_command('series')
    arg_parser = arguments.get_parser()
    # This series starts two tests. One that ends almost immediately an one
    # that runs (sleeps) for a while.
    args = arg_parser.parse_args([
        'series',
        'run',
        'sleepy'])
    series_cmd.silence()
    run_result = series_cmd.run(self.pav_cfg, args)
    self.assertEqual(run_result, 0)
    ser = series_cmd.last_run_series
    self._wait_for_all_start(ser)
    cancel_args = arg_parser.parse_args(['series', 'cancel', series_cmd.last_run_series.sid])
    cancel_result = series_cmd.run(self.pav_cfg, cancel_args)
    self.assertEqual(cancel_result, 0)
    self.assertEqual(ser.status.current().state, SERIES_STATES.CANCELED)