def test_no_ext(self, mock_date): """Function: test_no_ext Description: Test with no extension passed. Arguments: """ mock_date.strftime.return_value = self.indate self.assertEqual(gen_libs.crt_file_time(self.fname, self.path), self.result2)
def test_trailing_slash(self, mock_date): """Function: test_trailing_slash Description: Test with trailing slash in path. Arguments: """ mock_date.strftime.return_value = self.indate self.assertEqual( gen_libs.crt_file_time(self.fname, self.path2, self.ext2), self.result)
def test_crt_file_time(self, mock_date): """Function: test_crt_file_time Description: Test crt_file_time function. Arguments: """ mock_date.strftime.return_value = self.indate self.assertEqual( gen_libs.crt_file_time(self.fname, self.path, self.ext), self.result)
def test_ext_no_sep(self, mock_date): """Function: test_ext_no_sep Description: Test with no seperator in extension. Arguments: """ mock_date.strftime.return_value = self.indate self.assertEqual( gen_libs.crt_file_time(self.fname, self.path, self.ext2), self.result)