def test_laziness_with_same_file(self): hs = HashStore() flag = hs.are_two_file_different(self.source_file, self.source_file) assert flag is True # because we don't know it before flag = hs.are_two_file_different(self.source_file, self.source_file) assert flag is False
def test_different_files(self): hs = HashStore() flag = hs.are_two_file_different(self.source_file, self.dest_file) assert flag is True
def test_simple_use_case(self): hs = HashStore() flag = hs.are_two_file_different(self.source_file, "/tmp/abc") assert flag is True