def test_clean_files_by_date_2(self):
        with mock.patch.object(DataCleaner, '_get_current_time') as mock_time:
            mock_time.return_value = 10
            filelist = [('file1', 0, 0), ('file2', 3, 0), ('file3', 5, 0),
                        ('file4', 7, 0)]

            self.assertEqual([('file1', 0, 0), ('file2', 3, 0)],
                             DataCleaner.clean_files_by_date(
                                 filelist, 6, [], ['*file*']))
            self.assertEqual([('file3', 5, 0), ('file4', 7, 0)], filelist)
 def test_clean_files_by_date_1(self):
     self.assertEqual([], DataCleaner.clean_files_by_date([], 0, [], []))