'Verify that a non-staff user cannot access a given view.
`view` is the view to test.
`view_args` is a list of arguments (not including the request) to pass
to the view.'

def _verify_non_staff_cannot_access(self, view, request_method, view_args):

    if (request_method == 'GET'):
        request = RequestFactory().get('dummy_url')
    elif (request_method == 'POST'):
        request = RequestFactory().post('dummy_url')
    else:
        request = RequestFactory().request()
    request.user = self.non_staff_user
    view_args.insert(0, request)
    self.assertRaises(Http404, view, *view_args)
