def testEditCurrentSameTime(self):
        data = self.default_data
        data.update({
            'start_time_0': self.current_entry_data['start_time'].strftime(
                '%m/%d/%Y'),
            'start_time_1': self.current_entry_data['start_time'].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)
        self.assertContains(
            response, 'The entry has been updated successfully', count=1)
        entries = Entry.objects.filter(
            user=self.user, end_time__isnull=True)
        self.assertEquals(entries.count(), 1)
Set 'var' attribute value of this field.
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/CreateEditEntry.testEditCurrentSameTime--crossover with--dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/DataField.setVar