def test_superuser_can_edit_invoiced_entry(self):
        self.client.logout()
        self.login_user(self.superuser)

        url, entry, data = self.edit_entry_helper(Entry.INVOICED)

        response = self.client.post(url, data=data, follow=True)
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, 'The entry has been updated successfully.')
Superuser should be able to edit an invoiced entry
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/CreateEditEntry.test_superuser_can_edit_invoiced_entry