def test_existingdirectory(self):
    self.assertTrue(isinstance(example_dir, ExistingDirectory))
    self.assertFalse(isinstance(nonexistant_dir, ExistingDirectory))
    self.assertFalse(isinstance(test_init_file, ExistingDirectory))
    self.assertTrue((ExistingDirectory(example_dir) == example_dir))
    self.assertRaises(TypeError, ExistingDirectory, 321.321)
    self.assertRaises(TypeError, ExistingDirectory, [example_dir])
    self.assertRaises(IOError, ExistingDirectory, nonexistant_dir)
    self.assertRaises(IOError, ExistingDirectory, test_init_file)
def test_existingdirectory(self):
    self.assertTrue(isinstance(example_dir, ExistingDirectory))
    self.assertFalse(isinstance(nonexistant_dir, ExistingDirectory))
    self.assertFalse(isinstance(test_init_file, ExistingDirectory))
    self.assertTrue((ExistingDirectory(example_dir) == example_dir))
    self.assertRaises(TypeError, ExistingDirectory, 321.321)
    self.assertRaises(TypeError, ExistingDirectory, [example_dir])
    self.assertRaises(IOError, ExistingDirectory, nonexistant_dir)
    self.assertRaises(IOError, ExistingDirectory, test_init_file)