class_docstr: Some tests on the database manager class that don't get exercised through the API
class_docstr_tok: ["Some","tests","on","the","database","manager","class","that","do","n't","get","exercised","through","the","API"]
code: def test_cursor_conflict(self):
      rwc = self._db.readwrite_cursor
      statement = (
          "INSERT INTO directory (path, mtime) VALUES (?, ?)",
          ("/tmp", 0),
      )
      with pytest.raises(sqlite3.IntegrityError):
          # Whichever exits first will commit and make the second violate uniqueness
          with rwc() as c1, rwc() as c2:
              c1.execute(*statement)
              c2.execute(*statement)
  
imports: import os
  import sqlite3
  from io import BytesIO
  from os.path import dirname
  from os.path import join
  from ..testing import suppress_warnings
  import unittest
  import pytest
  from ..None import nifti1
  from ..optpkg import optional_package
label_desc: Use image node_id 3 for calling the Test_DBclass obj's underlying member method code with example usage: obj.test_cursor_conflict() without return types