Created
June 2, 2010 19:28
-
-
Save abyx/422856 to your computer and use it in GitHub Desktop.
mid refactoring
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VCR: | |
function eject(should_rewind=True): | |
if should_rewind: | |
rewind | |
_open_lid | |
class VCRTest: | |
function test_rewinds_when_ejecting: | |
# stuff | |
function test_opens_lid_to_eject: | |
# stuff | |
function test_rewind_actually_spins_tape: | |
vcr.rewind | |
# check stuff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment