def METHOD_NAME(self):
    # test for bug #1172763: dumbdbm would die if the line endings
    # weren't what was expected.
    f = dumbdbm.open(_fname)
    f[b'1'] = b'hello'
    f[b'2'] = b'hello2'
    f.close()
    # Mangle the file by changing the line separator to Windows or Unix
    with io.open(_fname + '.dir', 'rb') as file:
        data = file.read()
    if os.linesep == '\n':
        data = data.replace(b'\n', b'\r\n')
    else:
        data = data.replace(b'\r\n', b'\n')
    with io.open(_fname + '.dir', 'wb') as file:
        file.write(data)
    f = dumbdbm.open(_fname)
    self.assertEqual(f[b'1'], b'hello')
    self.assertEqual(f[b'2'], b'hello2')
    f.close()