예제 #1
0
 def testOverdraw(self):
     tis = TimeInSeconds("88")
     assert tis.subtractSeconds(100) == -12
     assert tis.inSeconds() == "0"
예제 #2
0
 def testInitInMinutesAndSeconds(self):
     tis = TimeInSeconds("3:25")
     assert tis.inSeconds() == "205"
     assert tis.inMinutesAndSeconds() == "3:25"
예제 #3
0
 def testSubtractSeconds(self):
     tis = TimeInSeconds("99")
     assert tis.subtractSeconds(50) == 49
     assert tis.inSeconds() == "49"
예제 #4
0
 def testInitInSeconds(self):
     tis = TimeInSeconds("59")
     assert tis.inSeconds() == "59"
     assert tis.inMinutesAndSeconds() == "0:59"
예제 #5
0
 def testOverdraw(self):
     tis = TimeInSeconds("88")
     assert tis.subtractSeconds(100) == -12
     assert tis.inSeconds() == "0"
예제 #6
0
 def testSubtractSeconds(self):
     tis = TimeInSeconds("99")
     assert tis.subtractSeconds(50) == 49
     assert tis.inSeconds() == "49"
예제 #7
0
 def testInitInMinutesAndSeconds(self):
     tis = TimeInSeconds("3:25")
     assert tis.inSeconds() == "205"
     assert tis.inMinutesAndSeconds() == "3:25"
예제 #8
0
 def testInitInSeconds(self):
     tis = TimeInSeconds("59")
     assert tis.inSeconds() == "59"
     assert tis.inMinutesAndSeconds() == "0:59"