def testEditCurrentDiffTime(self):
        data = self.default_data
        new_start = self.current_entry_data['start_time'] + \
            relativedelta(minutes=5)
        data.update({
            'start_time_0': new_start.strftime('%m/%d/%Y'),
            'start_time_1': new_start.strftime('%H:%M:%S'),
        })
        response = self.client.post(self.edit_current_url, data, follow=True)
        # This post should redirect to the dashboard, with the correct message
        # and 1 active entry, because we updated the current entry from setUp
        self.assertRedirects(response, reverse('dashboard'),
                             status_code=302, target_status_code=200)
        entries = Entry.objects.filter(user=self.user, end_time__isnull=True)
        self.assertEquals(entries.count(), 1)
Test the ability to edit a current entry, using valid new values
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/CreateEditEntry.testEditCurrentDiffTime