old_contents: import unittest
  import time
  from pabot import pabot
  
  
  class PabotTests(unittest.TestCase):
  
      def test_parse_args(self):
          options, datasources, pabot_args = pabot._parse_args(
              ['--command', 'my_own_command.sh', '--end-command',
               '--processes', '12',
               '--verbose',
               '--resourcefile', 'resourcefile.ini',
               '--pabotlib',
               '--pabotlibhost', '123.123.233.123',
               '--pabotlibport', '4562',
               '--suitesfrom', 'some.xml',
               'suite'])
          self.assertEqual(pabot_args['command'], ['my_own_command.sh'])
          self.assertEqual(pabot_args['processes'], 12)
          self.assertEqual(pabot_args['resourcefile'], 'resourcefile.ini')
          self.assertEqual(pabot_args['pabotlib'], True)
          self.assertEqual(pabot_args['pabotlibhost'], '123.123.233.123')
          self.assertEqual(pabot_args['pabotlibport'], 4562)
          self.assertEqual(pabot_args['suitesfrom'], 'some.xml')
          self.assertEqual(datasources, ['suite'])
  
      def test_start_and_stop_remote_library(self):
          _, _, pabot_args = pabot._parse_args(['--pabotlib', 'suite'])
          lib_process = pabot._start_remote_library(pabot_args)
          self.assertTrue(lib_process.poll() is None)
          time.sleep(0.3)
          pabot._stop_remote_library(lib_process)
          self.assertTrue(lib_process.poll() == 0)
  
      def test_solve_suite_names(self):
          options, datasources, pabot_args = pabot._parse_args(['tests/fixtures'])
          outs_dir = pabot._output_dir(options)
          suite_names = pabot.solve_suite_names(outs_dir=outs_dir, datasources=datasources, options=options, pabot_args=pabot_args)
          self.assertEqual(['Fixtures.Suite One', 'Fixtures.Suite Second'], suite_names)
  
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: import unittest
  import time
  from pabot import pabot
  
  
  class PabotTests(unittest.TestCase):
  
      def test_parse_args(self):
          options, datasources, pabot_args = pabot._parse_args(
              ['--command', 'my_own_command.sh', '--end-command',
               '--processes', '12',
               '--verbose',
               '--resourcefile', 'resourcefile.ini',
               '--pabotlib',
               '--pabotlibhost', '123.123.233.123',
               '--pabotlibport', '4562',
               '--suitesfrom', 'some.xml',
               'suite'])
          self.assertEqual(pabot_args['command'], ['my_own_command.sh'])
          self.assertEqual(pabot_args['processes'], 12)
          self.assertEqual(pabot_args['resourcefile'], 'resourcefile.ini')
          self.assertEqual(pabot_args['pabotlib'], True)
          self.assertEqual(pabot_args['pabotlibhost'], '123.123.233.123')
          self.assertEqual(pabot_args['pabotlibport'], 4562)
          self.assertEqual(pabot_args['suitesfrom'], 'some.xml')
          self.assertEqual(datasources, ['suite'])
  
      def test_start_and_stop_remote_library(self):
          _, _, pabot_args = pabot._parse_args(['--pabotlib', 'suite'])
          lib_process = pabot._start_remote_library(pabot_args)
          self.assertTrue(lib_process.poll() is None)
          time.sleep(0.3)
          pabot._stop_remote_library(lib_process)
          self.assertTrue(lib_process.poll() == 0)
  
      def test_solve_suite_names(self):
          options, datasources, pabot_args = pabot._parse_args(
              ['tests/fixtures'])
          outs_dir = pabot._output_dir(options)
          suite_names = pabot.solve_suite_names(outs_dir=outs_dir,
                                                datasources=datasources,
                                                options=options,
                                                pabot_args=pabot_args)
          self.assertEqual(['Fixtures.Suite One', 'Fixtures.Suite Second'],
                           suite_names)
  
  
  if __name__ == '__main__':
      unittest.main()
  
subject: fix lint