tests/test_logs.py
raw| 1 | #!/usr/bin/python |
| 2 | |
| 3 | from utils import * |
| 4 | import time |
| 5 | |
| 6 | class LogTests(IloTestCase): |
| 7 | def test_ilo_event_log(self, ilo): |
| 8 | ilo.clear_ilo_event_log() |
| 9 | time.sleep(2) |
| 10 | log = ilo.get_ilo_event_log() |
| 11 | self.assertTrue(type(log) != dict) |
| 12 | self.assertTrue(len(log) <= 3) |
| 13 | |
| 14 | if __name__ == '__main__': |
| 15 | unittest.main() |