Beispiel #1
0
 def test_history(self):
     ivc = StringValueCounter('test_counter', history=2)
     ivc.update('qw')
     ivc.update('wq')
     hp, hn = ivc.get_history()
     self.assertEqual(hp[1], 'qw')
     self.assertEqual(hn[1], 'wq')