예제 #1
0
    def test_same_file(self):
        """diff_files: distinct identical files have same checksums

        """
        self.assertEqual(diff_files(self.file1, self.file2), 0)
    def test_different_files(self):
        """diff_files: different files have different values checksums

        """
        self.assertNotEqual(diff_files(self.file1,self.file3),0)
예제 #3
0
    def test_different_files(self):
        """diff_files: different files have different values checksums

        """
        self.assertNotEqual(diff_files(self.file1, self.file3), 0)
    def test_same_file(self):
        """diff_files: distinct identical files have same checksums

        """
        self.assertEqual(diff_files(self.file1,self.file2),0)