'Test that removing owner will unsubscribe them from Comm threads.'

def test_delete_unsub_comm(self):

    thread = self.webapp.threads.create()
    user = UserProfile.objects.filter(email='steamcube@mozilla.com')[0]
    user.comm_thread_cc.create(thread=thread, user=user)
    data = self.formset(dict(user='regular@mozilla.com', listed=True, role=mkt.AUTHOR_ROLE_OWNER, position=1), initial_count=0)
    self.client.post(self.url, data)
    (one, two) = self.client.get(self.url).context['user_form'].initial_forms
    one.initial['DELETE'] = True
    data = self.formset(one.initial, two.initial, initial_count=2)
    self.client.post(self.url, data)
    eq_(user.comm_thread_cc.count(), 0)
