Esempio n. 1
0
 def test_str(self):
     sut = CP16Time2a()
     sut.set_millisecond(50000)
     self.assertEqual(sut.__str__(), "50000")
Esempio n. 2
0
 def test_repr(self):
     sut = CP16Time2a()
     sut.set_millisecond(50000)
     self.assertEqual(sut.__repr__(), "CP16Time2a(50000)")
Esempio n. 3
0
 def test_set_millisecond(self):
     sut = CP16Time2a()
     sut.set_millisecond(50000)
     self.assertEqual(50000, sut.get_millisecond())
Esempio n. 4
0
 def test_creation(self):
     sut = CP16Time2a()
     self.assertEqual(sut.get_millisecond(), 0)
Esempio n. 5
0
 def test_compare_56_to_16(self):
     a = CP56Time2a()
     b = CP16Time2a()
     self.assertFalse(a == b)
Esempio n. 6
0
 def test_compare_16_to_24(self):
     a = CP16Time2a()
     b = CP24Time2a()
     self.assertFalse(a == b)
Esempio n. 7
0
 def test_compare_16_to_16(self):
     a = CP16Time2a()
     b = CP16Time2a()
     self.assertTrue(a == b)