'Calling POST /json/users/me/subscriptions on a stream whose name contains
null characters should return a JSON error.'

def test_subscriptions_add_stream_with_null(self):

    stream_name = 'abc\x00'
    result = self.common_subscribe_to_streams(self.test_email, [stream_name])
    self.assert_json_error(result, ("Stream    name    '%s'    contains    NULL    (0x00)    characters." % stream_name))
