'Check that invalid \'usage_key_string\' raises Http404.'

@patch('contentstore.views.component.render_to_response', Mock(return_value=Mock(status_code=200, content='')))
def test_container_page_with_valid_and_invalid_usage_key_string(self):

    request = RequestFactory().get('foo')
    request.user = self.user
    self.assertRaises(Http404, views.container_handler, request, usage_key_string='i4x://InvalidOrg/InvalidCourse/vertical/static/InvalidContent')
    response = views.container_handler(request=request, usage_key_string=unicode(self.vertical.location))
    self.assertEqual(response.status_code, 200)
