FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
code-guild/code-guild/python/testing/mock_test.py at master · grantholly/code-guild · GitHub
grantholly
code-guild
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
code-guild
/
code-guild
/
python
/
testing
/
mock_test.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (7 loc) · 173 Bytes
Breadcrumbs
code-guild
/
code-guild
/
python
/
testing
/
mock_test.py
Copy path
File metadata and controls
11 lines (7 loc) · 173 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
import
mock
def
s
():
word
=
raw_input
(
'words'
)
return
word
def
test_s
():
with
mock
.
patch
(
'__builtin__.raw_input'
,
return_value
=
'y'
):
assert
s
()
==
test_s
()
Back
|
FazBrowse Home
|
New Git URL