'Calling POST /json/users/me/subscriptions on a stream whose name is invalid (as
defined by valid_stream_name in zerver/views.py) should return a JSON
error.'

def test_subscriptions_add_invalid_stream(self):

    invalid_stream_name = ''
    result = self.common_subscribe_to_streams(self.test_email, [invalid_stream_name])
    self.assert_json_error(result, ("Invalid    stream    name    '%s'" % (invalid_stream_name,)))
