'Only way to force an error is with a empty string.'

def test_patch_enforces_valid_stream_name_check(self):

    email = self.example_email('hamlet')
    self.login(email)
    invalid_stream_name = ''
    request = {'delete': ujson.dumps([invalid_stream_name])}
    result = self.client_patch('/api/v1/users/me/subscriptions', request, **self.api_auth(email))
    self.assert_json_error(result, ("Invalid    stream    name    '%s'" % (invalid_stream_name,)))
