import unittest
from app import retry_delays
class T(unittest.TestCase):
 def test_all(self):
  self.assertEqual(retry_delays(6,3,20),[3,6,12,20,20,20])
  self.assertEqual(retry_delays(0),[])
  for a in [(-1,1,3),(2,0,3),(2,4,0)]:
   with self.assertRaises(ValueError): retry_delays(*a)
if __name__=='__main__': unittest.main()
