'Calling /api/v1/users/me/subscriptions should successfully return your subscriptions.'

def test_successful_subscriptions_list(self):

    email = self.test_email
    result = self.client_get('/api/v1/users/me/subscriptions', **self.api_auth(email))
    self.assert_json_success(result)
    json = ujson.loads(result.content)
    self.assertIn('subscriptions', json)
    for stream in json['subscriptions']:
        self.assertIsInstance(stream['name'], six.string_types)
        self.assertIsInstance(stream['color'], six.string_types)
        self.assertIsInstance(stream['invite_only'], bool)
        get_stream(stream['name'], self.test_realm)
    list_streams = [stream['name'] for stream in json['subscriptions']]
    self.assertEqual(sorted(list_streams), sorted(self.streams))
