'Re-ordering authors should not generate role changes in the
ActivityLog.'

def test_reorder_authors(self):

    f = self.client.get(self.url).context['user_form'].initial_forms[0]
    u = dict(user='regular@mozilla.com', listed=True, role=mkt.AUTHOR_ROLE_DEV, position=0)
    data = self.formset(f.initial, u, initial_count=1)
    r = self.client.post(self.url, data)
    eq_(r.status_code, 302)
    f = self.client.get(self.url).context['user_form'].initial_forms[0]
    u1 = f.initial
    u1['position'] = 1
    f = self.client.get(self.url).context['user_form'].initial_forms[1]
    u2 = f.initial
    data = self.formset(u1, u2)
    orig = ActivityLog.objects.all().count()
    r = self.client.post(self.url, data)
    self.assert3xx(r, self.url, 302)
    eq_(ActivityLog.objects.all().count(), orig)
