﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26315	Allow call_command() to accept a Command object as the first argument	Jon Dufresne	nobody	"Several of Django's tests assert the state of a command object. For example:{{{ManageRunserver.assertServerSettings}}}.

https://github.com/django/django/blob/50931df/tests/admin_scripts/tests.py#L1306

The preferred interface for testing commands is `call_command()`. When using `call_command()` the caller has no reference to the Command object used during execution. This makes it difficult to use this interface in some tests.

One solution would be to allow `call_command()` to accept a Command object as the first argument instead of the name of the command. The caller would then have a reference to the object used in asserts.

https://github.com/django/django/pull/6217"	New feature	closed	Testing framework	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
