def test_paste_into_file(self):
        """
        Test copy of a file & paste into a file.
        Comparsion is done using 'md5sum'
        """
        pin = os.path.join(self.get_data_path(), "testfile.txt")
        pout = os.path.join(tempfile.gettempdir(), "testpastefile.txt")
        if os.path.exists(pout):
            os.remove(pout)
        self.run_command("pbcopy " + pin, exitcode=0)
        self.run_command("pbpaste " + pout, exitcode=0)
        org_hash = self.run_command("md5sum " + pin, exitcode=0).split()[0]
        paste_hash = self.run_command("md5sum " + pout, exitcode=0).split()[0]
        self.assertEqual(org_hash, paste_hash)

        Test copy of a file & paste into a file.
        Comparsion is done using 'md5sum'
        
tests/pbcopy_pbpaste/test_pbcopy_pbpaste.py