def test_basic(self):
     buflist = self._basic([0, 1, 1.05, 1.1, 2])
     self.assertEqual(buflist, [
         'foo',
         MeteredStream._erasure('foo'), 'bar',
         MeteredStream._erasure('bar'), 'baz 2',
         MeteredStream._erasure('baz 2'), 'done\n'
     ])
 def test_log_after_update(self):
     buflist = self._log_after_update()
     self.assertEqual(buflist,
                      ['foo', MeteredStream._erasure('foo'), 'bar\n'])