313
313
sub = target.addBugSubscription(team, team.teamowner)
314
314
expose_user_subscriptions_to_js(user, [sub], request)
315
315
info = IJSONRequestCache(request).objects['subscription_info']
318
318
self.assertEqual(target_info['target_title'], target.title)
320
320
target_info['target_url'], canonical_url(
321
321
target, rootsite='mainsite'))
323
323
filter_info = target_info['filters'][0]
324
324
self.assertEqual(filter_info['filter'], sub.bug_filters[0])
325
325
self.assertTrue(filter_info['subscriber_is_team'])