moved to using mockpatch from oslotest instead of local one