old_contents: """unit tests for core.py"""
  
  import pytest
  import sys
  import os
  
  sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../")
  
  import go
  import core
  
  
  def test_malformed_linkdatabase():
      # pytest.set_trace()
      with pytest.raises(EOFError):
          core.LinkDatabase().load(db='tests/garbage.pickle')
  
new_contents: """unit tests for core.py"""
  
  import pytest
  import sys
  import os
  
  sys.path.append(os.path.dirname(os.path.realpath(__file__)) + "/../")
  
  import go
  import core
  
  
  def test_nextlinkid():
      """The link IDs are started at 1."""
      mydb = core.LinkDatabase()
      assert mydb._nextlinkid == 1
  
subject: remove malformed db test, add test for nextlinkid