old_contents: import unittest
  import os
  
  from configuration import Builder
  import configuration
  
  
  class ConfigurationTestCase(unittest.TestCase):
  
      def setUp(self):
          self.workdirectory = os.path.dirname(os.path.realpath(__file__))
  
      def test_DeletionOfFolder(self):
          config = Builder().setworkdirectory(self.workdirectory).build()
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
          config.deletelogfolder()
          self.assertFalse(os.path.exists(samplepath))
  
      def test_ReaddingLogFolderAfterDeletion(self):
          config = Builder().setworkdirectory(self.workdirectory).build()
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
          config.deletelogfolder()
          self.assertFalse(os.path.exists(samplepath))
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
  
      def test_sampleBoolConfigEntrySetToFalse_ShouldBeFalse(self):
          config = Builder().setuseautomaticconflictresolution("False").build()
          self.assertFalse(config.useautomaticconflictresolution)
  
      def test_sampleBoolConfigEntrySetToTrue_ShouldBeTrue(self):
          config = Builder().setuseautomaticconflictresolution("True").build()
          self.assertTrue(config.useautomaticconflictresolution)
  
      def test_getSampleConfig_ExpectInitializedConfigWithDefaultValues(self):
          config = configuration.read("../config.ini.sample")
          self.assertEqual("lscm", config.scmcommand)
          self.assertEqual(config, configuration.get())
  
      def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
          config = Builder().setignorefileextensions(None).build()
          self.assertTrue(len(config.ignorefileextensions) == 0)
  
      def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromEmpty(self):
          config = Builder().setignorefileextensions("").build()
          self.assertTrue(len(config.ignorefileextensions) == 0)
  
      def test_fileExtensionsToBeIgnored_SingleExtensions(self):
          config = Builder().setignorefileextensions(" .zip  ").build()
          self.assertTrue(len(config.ignorefileextensions) == 1)
          self.assertEqual(['.zip'], config.ignorefileextensions)
  
      def test_fileExtensionsToBeIgnored_MultipleExtensions(self):
          config = Builder().setignorefileextensions(".zip, .jar,  .exe").build()
          self.assertTrue(len(config.ignorefileextensions) == 3)
          self.assertEqual(['.zip', '.jar', '.exe'], config.ignorefileextensions)
  
new_contents: import unittest
  import os
  
  from configuration import Builder
  import configuration
  
  
  class ConfigurationTestCase(unittest.TestCase):
  
      def setUp(self):
          self.workdirectory = os.path.dirname(os.path.realpath(__file__))
  
      def test_DeletionOfFolder(self):
          config = Builder().setworkdirectory(self.workdirectory).build()
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
          config.deletelogfolder()
          self.assertFalse(os.path.exists(samplepath))
  
      def test_ReaddingLogFolderAfterDeletion(self):
          config = Builder().setworkdirectory(self.workdirectory).build()
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
          config.deletelogfolder()
          self.assertFalse(os.path.exists(samplepath))
          samplepath = os.path.dirname(config.getlogpath("anyPath"))
          self.assertTrue(os.path.exists(samplepath))
  
      def test_sampleBoolConfigEntrySetToFalse_ShouldBeFalse(self):
          config = Builder().setuseautomaticconflictresolution("False").build()
          self.assertFalse(config.useautomaticconflictresolution)
  
      def test_sampleBoolConfigEntrySetToTrue_ShouldBeTrue(self):
          config = Builder().setuseautomaticconflictresolution("True").build()
          self.assertTrue(config.useautomaticconflictresolution)
  
      def test_getSampleConfig_ExpectInitializedConfigWithDefaultValues(self):
          config = configuration.read("../config.ini.sample")
          self.assertEqual("lscm", config.scmcommand)
          self.assertEqual(config, configuration.get())
  
      def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromNone(self):
          config = Builder().setignorefileextensions(None).build()
          self.assertTrue(len(config.ignorefileextensions) == 0)
  
      def test_fileExtensionsToBeIgnored_ShouldBeEmpty_FromEmpty(self):
          config = Builder().setignorefileextensions("").build()
          self.assertTrue(len(config.ignorefileextensions) == 0)
  
      def test_fileExtensionsToBeIgnored_SingleExtensions(self):
          config = Builder().setignorefileextensions(" .zip  ").build()
          self.assertTrue(len(config.ignorefileextensions) == 1)
          self.assertEqual(['.zip'], config.ignorefileextensions)
  
      def test_fileExtensionsToBeIgnored_MultipleExtensions(self):
          config = Builder().setignorefileextensions(".zip; .jar;  .exe").build()
          self.assertTrue(len(config.ignorefileextensions) == 3)
          self.assertEqual(['.zip', '.jar', '.exe'], config.ignorefileextensions)
  
subject: make test green by using semicolon as separator (slipped through when fixing the config parser)