add assert_user_has(nt)_case functions + misc pep8
Merge pull request #215 from dimagi/cz

add assert_user_has(nt)_case functions + misc pep8