| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | import unittest |
||
| 38 | @mock.patch('sys.stdout') |
||
| 39 | def test_check_error(self, mock_out): |
||
| 40 | # if hasn't error |
||
| 41 | resp = self.pm.check_error(['410C7D']) |
||
| 42 | self.assertTrue(resp) |
||
| 43 | |||
| 44 | # if some error appears |
||
| 45 | resp = self.pm.check_error(['7F0112']) |
||
| 46 | self.assertFalse(resp) |
||
| 47 | |||
| 48 | resp = self.pm.check_error(['7F0188']) |
||
| 49 | self.assertFalse(resp) |
||
| 50 | |||
| 54 |