'A non-subscriber to a private stream can\'t query that stream\'s membership.'

def test_nonsubscriber_private_stream(self):

    stream_name = 'NewStream'
    self.common_subscribe_to_streams(self.email, [stream_name], invite_only=True)
    user_profile = self.example_user('othello')
    other_email = user_profile.email
    stream_id = get_stream(stream_name, user_profile.realm).id
    result = self.make_subscriber_request(stream_id, email=other_email)
    self.assert_json_error(result, 'Invalid    stream    id')
