Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# coding: utf-8 | |
from mock import MagicMock, call, patch | |
# “mock is a library for testing in Python. It allows you to replace parts of | |
# your system under test with mock objects and make assertions about how they | |
# have been used.” | |
thing = MagicMock(name='thing', return_value=100) | |
print thing() |
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
OSX - 10.8.5 | |
❯ virtualenv-2.7 --version | |
1.11.5 | |
❯ ./jython/dist/bin/jython | |
Jython 2.7b2+ (default:f6f7196d27a5, May 15 2014, 20:10:22) | |
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> |
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
source /usr/local/git/contrib/completion/git-completion.bash | |
alias g="git"; __git_complete g _git | |
alias l="git status" | |
alias d="git diff"; __git_complete d _git_diff | |
alias ds="git diff --cached" | |
alias m="git commit -m " | |
alias am="git commit -am " | |
alias a="git add " | |
alias o-="git checkout --" | |
alias o="git checkout"; __git_complete o _git_checkout |
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
''' | |
Tests different methods of concatenating files in Python. | |
''' | |
from __future__ import print_function | |
import json,os,shutil,subprocess | |
import util | |
def verify(file,expected): | |
count = 0 |