def test_str(self): sut = CP16Time2a() sut.set_millisecond(50000) self.assertEqual(sut.__str__(), "50000")
def test_repr(self): sut = CP16Time2a() sut.set_millisecond(50000) self.assertEqual(sut.__repr__(), "CP16Time2a(50000)")
def test_set_millisecond(self): sut = CP16Time2a() sut.set_millisecond(50000) self.assertEqual(50000, sut.get_millisecond())
def test_creation(self): sut = CP16Time2a() self.assertEqual(sut.get_millisecond(), 0)
def test_compare_56_to_16(self): a = CP56Time2a() b = CP16Time2a() self.assertFalse(a == b)
def test_compare_16_to_24(self): a = CP16Time2a() b = CP24Time2a() self.assertFalse(a == b)
def test_compare_16_to_16(self): a = CP16Time2a() b = CP16Time2a() self.assertTrue(a == b)