def testCreateBlockByCurrent(self):
        overlap_entry = self.default_data
        overlap_entry.update({
            'start_time_0': self.current_entry.start_time.strftime('%m/%d/%Y'),
            'start_time_1': self.current_entry.start_time.strftime('%H:%M:%S'),
            'end_time_0': self.now.strftime('%m/%d/%Y'),
            'end_time_1': self.now.strftime('%H:%M:%S'),
        })
        response = self.client.post(self.create_url, overlap_entry, follow=True)
        form = response.context['form']
        self.assertEquals(len(form.errors), 1, form.errors)
        self.assertTrue('__all__' in form.errors, form.errors.keys())
If the counter is greater than max allowed events, is banned
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/CreateEditEntry.testCreateBlockByCurrent--crossover with--dataset/ETHPy150Open biicode/bii-server/rest/bottle_plugins/generic_blocker_bottle_plugin.py/GenericBlockerBottlePlugin._is_banned