Beispiel #1
0
 def test_text_file_different(self):
     r"""Text file with ``\n`` (LF) newlines"""
     self.assertNotEqual(
         text_file_md5(self.wrong_file_name),
         self.correct_md5sum,
         msg="MD5 sums must be different",
     )
Beispiel #2
0
 def test_text_file_unix(self):
     r"""Text file with ``\n`` (LF) newlines"""
     self.assertEqual(
         text_file_md5(self.correct_file_name_unix_nl),
         self.correct_md5sum,
         msg="MD5 sums different",
     )
Beispiel #3
0
 def test_text_file_platfrom(self):
     r"""Text file with platform dependent newlines"""
     self.assertEqual(
         text_file_md5(self.correct_file_name_platform_nl),
         self.correct_md5sum,
         msg="MD5 sums different",
     )
Beispiel #4
0
 def test_text_file_different(self):
     r"""Text file with ``\n`` (LF) newlines"""
     self.assertNotEqual(text_file_md5(self.wrong_file_name), self.correct_md5sum, msg="MD5 sums must be different")
Beispiel #5
0
 def test_text_file_unix(self):
     r"""Text file with ``\n`` (LF) newlines"""
     self.assertEqual(text_file_md5(self.correct_file_name_unix_nl), self.correct_md5sum, msg="MD5 sums different")
Beispiel #6
0
 def test_text_file_platfrom(self):
     r"""Text file with platform dependent newlines"""
     self.assertEqual(
         text_file_md5(self.correct_file_name_platform_nl), self.correct_md5sum, msg="MD5 sums different"
     )