old_contents: """ Test passing workingDir on the CLI """
  
  import os
  from os.path import expanduser
  from drupdates.tests.behavioral.behavioral_utils import BehavioralUtils
  from drupdates.tests import Setup
  
  class TestMultipleWorkingDirectoriesWorkingDirectoryCLI(object):
      """ Test passing workingDir on the CLI """
  
      @classmethod
      def setup_class(cls):
          """ Setup test class. """
          utils = BehavioralUtils()
          utils.build(__file__)
  
      def __init__(self):
          base = Setup()
          self.test_directory = base.test_dir
  
      def test_repo_built(self):
          """ Test to ensure both repos built successfully. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
          # If 2 repo Siteupdates in report repo built successfully. """
          assert len(updates) == 1
  
      def test_frst_repo_updated(self):
          """ Test to ensure the repo was updated. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
          index = updates[0]
          status = "status : The following updates were applied"
          assert results[index + 1].strip() == status
  
      def test_working_dir(self):
          """ Test that the repo is in the correct working directory. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          path = os.path.join(expanduser('~'), '.drupdates', 'builds', 'test')
          path_index = results.index(path, -1)
          assert results[path_index +1].strip() == 'drupal'
  
new_contents: """ Test passing workingDir on the CLI """
  
  import os
  from os.path import expanduser
  from drupdates.tests.behavioral.behavioral_utils import BehavioralUtils
  from drupdates.tests import Setup
  
  class TestMultipleWorkingDirectoriesWorkingDirectoryCLI(object):
      """ Test passing workingDir on the CLI """
  
      @classmethod
      def setup_class(cls):
          """ Setup test class. """
          utils = BehavioralUtils()
          utils.build(__file__)
  
      def __init__(self):
          base = Setup()
          self.test_directory = base.test_dir
  
      def test_repo_built(self):
          """ Test to ensure both repos built successfully. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
          # If 2 repo Siteupdates in report repo built successfully. """
          assert len(updates) == 1
  
      def test_frst_repo_updated(self):
          """ Test to ensure the repo was updated. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          updates = BehavioralUtils.list_duplicates_of(results, 'Siteupdate \n')
          index = updates[0]
          status = "status : The following updates were applied"
          assert results[index + 1].strip() == status
  
      def test_working_dir(self):
          """ Test that the repo is in the correct working directory. """
  
          file_name = open(os.path.join(self.test_directory, 'results.txt'), 'r')
          results = file_name.readlines()
          path = os.path.join(expanduser('~'), '.drupdates', 'builds', 'test \n')
          path_index = results.index(path)
          assert results[path_index +1].strip() == 'drupal'
  
subject: Fix issue with workingDir CLI test