Exemplo n.º 1
0
 def test_build_time_to_timedelta(self):
     """
     build_time_to_timedelta should return a timedelta for the millseconds
     that the build took.
     """
     self.assertEqual(timedelta(milliseconds=331),
                      build_time_to_timedelta(331))
Exemplo n.º 2
0
 def test_build_time_to_timedelta(self):
     """
     build_time_to_timedelta should return a timedelta for the millseconds
     that the build took.
     """
     self.assertEqual(timedelta(milliseconds=331),
                      build_time_to_timedelta(331))
Exemplo n.º 3
0
 def test_build_time_to_timedelta_with_no_time(self):
     """
     If the build time is None (hasn't completed) then we should get an
     empty string back.
     """
     self.assertEqual("", build_time_to_timedelta(None))
Exemplo n.º 4
0
 def test_build_time_to_timedelta_with_no_time(self):
     """
     If the build time is None (hasn't completed) then we should get an
     empty string back.
     """
     self.assertEqual("", build_time_to_timedelta(None))