start new:
tmux
start new with session name:
tmux new -s myname
| def using_mock(): | |
| import mock | |
| from django.core.files import File | |
| file_mock = mock.MagicMock(spec=File, name='FileMock') | |
| def using_tempfile(): | |
| import tempfile |
| import stripe | |
| stripe.api_key = 'tGN0bIwXnHdwOa85VABjPdSn8nWY7G7I' | |
| print "Attempting charge..." | |
| resp = stripe.Charge.create( | |
| amount=200, | |
| currency='usd', | |
| card={ |