def testClockInBeforeCurrent(self):
        self.login_user(self.user)
        entry1_data = {
            'user': self.user,
            'project': self.project,
            'activity': self.devl_activity,
            'start_time': self.ten_min_ago,
        }
        entry1 = factories.Entry(**entry1_data)
        entry1_data.update({
            'st_str': self.ten_min_ago.strftime('%H:%M:%S')
        })
        before_entry1 = entry1.start_time - relativedelta(minutes=5)
        data = self.clock_in_form
        data.update({
            'start_time_0': before_entry1.strftime('%m/%d/%Y'),
            'start_time_1': before_entry1.strftime('%H:%M:%S'),
        })
        # This clock in attempt should be blocked by entry1
        # (It is before the start time of the current entry)
        response = self.client.post(self.url, data)
        form = response.context['form']
        self.assertEquals(len(form.errors), 2, form.errors)
        self.assertTrue('start_time' in form.errors, form.errors.keys)
        self.assertTrue('__all__' in form.errors, form.errors.keys)
Add Object to search index
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/ClockInTest.testClockInBeforeCurrent--crossover with--dataset/ETHPy150Open treeio/treeio/treeio/core/search/models.py/update_index