Pythoscope, the unit test generator

Preserve objects identity

Registered by Michal Kwiatkowski on 2008-09-24

While Pythoscope keeps track of objects and methods called on them it doesn't track the way they are passed around. Because of that it doesn't preserve their identity and can't even reconstruct them properly in other objects' tests.

For example, a code like that:

class Something(object):
    pass
def compare(x, y):
    return x is y
obj = Something()
compare(obj, obj)

would generate a bogus test case, by constructing each argument to compare() separately.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Michal Kwiatkowski
Direction:
Needs approval
Assignee:
None
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 0.4-setup-and-teardown
Started by
Michal Kwiatkowski on 2008-11-16
Completed by
Michal Kwiatkowski on 2009-01-16

Whiteboard

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.