BIND 10 #1507: Extract the common dummy classes for python (module) tests
BIND 10 Development
do-not-reply at isc.org
Sun Feb 5 19:51:03 UTC 2012
#1507: Extract the common dummy classes for python (module) tests
-------------------------------------+-------------------------------------
Reporter: jelte | Owner:
Type: task | Status: new
Priority: major | Milestone: Next-Sprint-
Component: | Proposed
Unclassified | Resolution:
Keywords: | Sensitive: 0
Defect Severity: N/A | Sub-Project: DNS
Feature Depending on Ticket: | Estimated Difficulty: 0
Add Hours to Ticket: 0 | Total Hours: 0
Internal?: 0 |
-------------------------------------+-------------------------------------
Changes (by jelte):
* milestone: New Tasks => Next-Sprint-Proposed
Comment:
Perhaps it should be a separate tasks, but we repeat a specific pattern
quite often; we provide a dummy class and then have a test that only
checks whether a certain method has been called on that class.
I've been playing around a bit with python, and wrote a little call-
counting (and optional proxy) class; you can get it at
http://tjeb.nl/opendir/callcounter.py
(something like) this would be directly usable as a mock class where we
currently don't require any specific behaviour (for instance for tests
where we only check that a certain method is called in a piece of code,
and said method returns None, or it's return value isn't used). And
probably be used quite easily as a proxy when necessary.
--
Ticket URL: <http://bind10.isc.org/ticket/1507#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list