def test_010_TimebaseAverageEventCounter(self):
        c = counter.TimebaseAverageEventCounter(2, 1)
        for i in range(100):
            time.sleep(0.1)
            c.event(100+i)
        self.assertEqual(c.sum, float(180+199)*20/2)
        self.assertEqual(c.avg, 2/float(180+199))
dataset/ETHPy150Open binux/pyspider/tests/test_counter.py/TestCounter.test_010_TimebaseAverageEventCounter/swapped operands of `/`