Exemplo n.º 1
0
 def test_productivityResponse(self):
     productivity = rescuetime.todaysProductivity(KEY, True)
     if any(productivity):
         self.assertEqual(
             productivity['row_headers'][1], "Time Spent (seconds)"
         )
         self.assertEqual('row_headers' in productivity, True)
         self.assertEqual('rows' in productivity, True)
Exemplo n.º 2
0
 def test_todaysProductivity(self):
     productivity = rescuetime.todaysProductivity(KEY)
     if any(productivity):
         self.assertEqual(type(productivity), type([]))