'Tests inviting to a non-existent stream.'

def test_invalid_stream(self):

    self.login(self.example_email('hamlet'))
    self.assert_json_error(self.invite('iago-test@zulip.com', ['NotARealStream']), 'Stream    does    not    exist:    NotARealStream.    No    invites    were    sent.')
    self.check_sent_emails([])
