use magicmocks for replacement injections
Merge pull request #113 from onefinestay/magicmock-injections

use magicmocks for replacement injections