Skip to content

Instantly share code, notes, and snippets.

View romaad's full-sized avatar
👀
looking 4 open source projects

Mohamed Said romaad

👀
looking 4 open source projects
View GitHub Profile
@igniteflow
igniteflow / mock-object-property.py
Created October 3, 2016 11:03
How to mock an object property in Python
import mock
with mock.patch('path.to.ObjectClass.my_property', new_callable=mock.PropertyMock) as mock_my_property:
mock_my_property.return_value = 'my value'

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: