'Calling POST /json/users/me/subscriptions should notify when a new stream is created.'

def test_successful_subscriptions_notifies_pm(self):

    invitee = self.example_email('iago')
    current_stream = self.get_streams(invitee, self.test_realm)[0]
    invite_streams = self.make_random_stream_names([current_stream])[:1]
    result = self.common_subscribe_to_streams(invitee, invite_streams, extra_post_data={'announce': 'true', 'principals': ('["%s"]' % (self.user_profile.email,))})
    self.assert_json_success(result)
