

def test_write(self):
    ' Test the write command '
    temp_file = tempfile.mkstemp()[1]
    try:
        with open(temp_file, 'w+') as fh:
            self.new_manifest.write(fh)
        tools.eq_(self.new_manifest, load_manifest(temp_file))
    finally:
        os.unlink(temp_file)

dataset/ETHPy150Open toumorokoshi/sprinter/sprinter/core/tests/test_manifest.py TestManifest.test_write/original