Last active
August 29, 2015 14:00
-
-
Save feliperuhland/34797105c0dafc05c835 to your computer and use it in GitHub Desktop.
Mock raw_input
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
import mock | |
from django.test.testcases import TestCase | |
class TestMockRawInput(TestCase): | |
@mock.patch('__builtin__.raw_input', return_value='Y') | |
def test_mock_raw_input(self, input): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment