| Conditions | 1 |
| Total Lines | 5 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | from datetime import datetime |
||
| 25 | def test_file_dates(self): |
||
| 26 | class_fo = FileOperations() |
||
| 27 | value_to_assert = class_fo.fn_get_file_dates(__file__)['created'] |
||
| 28 | value_to_compare_with = datetime.fromtimestamp(os.path.getctime(__file__)) |
||
| 29 | self.assertEqual(value_to_assert, value_to_compare_with) |
||
| 30 |