new_contents: from tornado.testing import gen_test, AsyncTestCase
  from scrapydd.workspace import ProjectWorkspace
  import tempfile
  import os
  
  class ProjectWorkspaceTest(AsyncTestCase):
      @gen_test(timeout=30)
      def test_init(self):
          target = ProjectWorkspace('test_project')
  
          yield target.init()
          self.assertTrue(os.path.exists(target.python))
          self.assertTrue(os.path.exists(target.pip))
  
          self.assertTrue(file_is_in_dir(tempfile.gettempdir(), target.python))
  
  def file_is_in_dir(dir, file):
      if os.path.dirname(file) == dir:
          return True
  
      parent_dir = os.path.dirname(file)
      if parent_dir == file:
          return False
  
      return file_is_in_dir(dir, parent_dir)
subject: add test_workspace