def test_single_entry_in_week(self):
        april = utils.add_timezone(
            datetime.datetime(month=4, day=1, year=2012)
        )
        march = utils.add_timezone(
            datetime.datetime(month=3, day=26, year=2012)
        )
        factories.Entry(**{
            'user': self.user,
            'start_time': april,
            'end_time': april + relativedelta(hours=1)
        })
        factories.Entry(**{
            'user': self.user,
            'start_time': april + relativedelta(weeks=1),
            'end_time': april + relativedelta(weeks=1, hours=1)
        })
        factories.Entry(**{
            'user': self.user,
            'start_time': march,
            'end_time': march + relativedelta(hours=1)
        })

        response = self.client.get(self.url + '?{0}'.format(
            urlencode({'year': 2012, 'month': 4})
        ))
        self.assertEquals(response.status_code, 200)
        # entries context object is a ValuesQuerySet
        extra_values = ('start_time', 'end_time', 'comments', 'seconds_paused',
                        'id', 'location__name', 'project__name',
                        'activity__name', 'status')
        entries = Entry.objects.timespan(april, span='month').date_trunc('month', extra_values)
        self.assertEquals(list(entries), list(response.context['entries']))
Compute input activations given X
dataset/ETHPy150Open caktus/django-timepiece/timepiece/entries/tests/test_timesheet.py/HourlySummaryTest.test_single_entry_in_week--crossover with--dataset/ETHPy150Open dclambert/Python-ELM/random_layer.py/BaseRandomLayer._compute_input_activations