예제 #1
0
    def test_write_binary_file_hunk(self):
        outfile = self.path('out')
        h = FileHunk(self.path(self.name))
        h.save(outfile)

        with open(outfile, 'rb') as f:
            d = f.read()

        assert isinstance(d, str)
        assert d == self.BINARY_DATA