Opened 4 years ago

Closed 4 years ago

#7686 closed defect (fixed)

fix for mocking.mock_method

Reported by: robinson Owned by: atagar
Priority: Medium Milestone:
Component: Core Tor/Stem Version:
Severity: Keywords: test
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

atagar,

Per our discussion on tor-dev, I fixed mocking.mock_method.

Pull the fix-mock_method branch from git://gitorious.org/stem-robinson/stem-robinson.git or view commit logs @
https://gitorious.org/stem-robinson/stem-robinson/commits/fix-mock_method

Child Tickets

Change History (1)

comment:1 Changed 4 years ago by atagar

  • Resolution set to fixed
  • Status changed from new to closed

Nice, I wouldn't have guessed that setattr() would do the trick. This will be very, very handy for future unit tests - thanks!

Note: See TracTickets for help on using tickets.