old_contents: from nose.tools import assert_true, assert_equal
  import tempfile
  import datajoint as dj
  import os
  
  from .schema_external import Filepath
  
  
  def test_filepath():
      """ test file management """
      store = 'repo'
      stage_path = dj.config['stores'][store]['stage_path']
  
      # create a mock file
      relpath = 'one/two/three'
      os.makedirs(os.path.join(stage_path, relpath))
      managed_file = os.path.join(stage_path, relpath, 'attachment.dat')
      data = os.urandom(3000)
      with open(managed_file, 'wb') as f:
          f.write(data)
  
      ext = Filepath().external[store]
  
new_contents: from nose.tools import assert_true, assert_equal
  import tempfile
  import datajoint as dj
  import os
  
  from .schema_external import Filepath
  
  
  def test_filepath():
      """ test file management """
      store = 'repo'
      stage_path = dj.config['stores'][store]['stage']
  
      # create a mock file
      relpath = 'one/two/three'
      os.makedirs(os.path.join(stage_path, relpath))
      managed_file = os.path.join(stage_path, relpath, 'attachment.dat')
      data = os.urandom(3000)
      with open(managed_file, 'wb') as f:
          f.write(data)
  
      ext = Filepath().external[store]
  
subject: fix in test from previous commit