Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11253 closed (fixed)

TestCase method docs should consistently use TestCase.methodName

Reported by: Chris Beaven Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Currently we have:

TestCase.assertContains(response, text, count=None, status_code=200)
TestCase.assertNotContains(response, text, status_code=200)
assertFormError(response, form, field, errors)
assertTemplateUsed(response, template_name)
assertTemplateNotUsed(response, template_name)
assertRedirects(response, expected_url, status_code=302, target_status_code=200)

They're all TestCase methods so they should all be either with or without the TestCase. prefix (I say with)

Attachments (1)

11253.diff (2.2 KB ) - added by Chris Beaven 15 years ago.

Download all attachments as: .zip

Change History (4)

by Chris Beaven, 15 years ago

Attachment: 11253.diff added

comment:1 by Chris Beaven, 15 years ago

Triage Stage: UnreviewedReady for checkin

comment:2 by Russell Keith-Magee, 15 years ago

Resolution: fixed
Status: newclosed

(In [11051]) Fixed #11253 -- Normalized the way the docs refer to TestCase.assert* methods. Thanks to SmileyChris for the report and patch.

comment:3 by Russell Keith-Magee, 15 years ago

(In [11063]) [1.0.X] Fixed #11253 -- Normalized the way the docs refer to TestCase.assert* methods. Thanks to SmileyChris for the report and patch.

Merge of r11051 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top