source: tmcsimulator/trunk/src/python/unifiedlogger/test_logging_service.py @ 478

Revision 478, 234 bytes checked in by jdalbey, 7 years ago (diff)

Fix typo in actitivylog watcher and add simple unit test of logging service methods

Line 
1from logging_service import toHMS
2
3def test_toHMS():
4    assert toHMS(1) == "0:00:01"
5    assert toHMS(3599) == "0:59:59"
6    assert toHMS(3600) == "1:00:00"
7    assert toHMS(3601) == "1:00:01"
8    print "Pass"
9   
10test_toHMS()
11
12   
Note: See TracBrowser for help on using the repository browser.