Пример #1
0
 def test_windows_formatter_interval(self):
     # The unit is second.
     iw = IntervalWindow(start=1583190894, end=1583200000)
     self.assertEqual('2020-03-02 15:14:54.000000-0800 (2h 31m 46s)',
                      pv.windows_formatter([iw]))
Пример #2
0
 def test_windows_formatter_global(self):
     gw = GlobalWindow()
     self.assertEqual(str(gw), pv.windows_formatter([gw]))