def METHOD_NAME(self, testdata):
    """
    Read and Write files via obspy.core.Trace
    """
    with NamedTemporaryFile() as fh:
        testfile = fh.name
        self.file = testdata['3cssan.reg.8.1.RNON.wav']
        tr = read(self.file, format='WAV')[0]
        for width in (1, 2, 4, None):
            tr.write(testfile, format='WAV', framerate=7000, width=width,
                     rescale=True)
            if width is not None:
                tr2 = read(testfile, format='WAV')[0]
                maxint = 2 ** (8 * width - 1) - 1
                dtype = WIDTH2DTYPE[width]
                assert maxint == abs(tr2.data).max()
                expected = (tr.data / abs(tr.data).max() *
                            maxint).astype(dtype)
                np.testing.assert_array_almost_equal(tr2.data, expected)