def test_single_writable_non_existing_dir(self): self.assertEqual(__class__.WRITABLE_NON_EXISTING_DIR, writable_dir(__class__.WRITABLE_NON_EXISTING_DIR))
def test_single_non_writable_sub_dir(self): with self.assertRaises(Error) as cm: writable_dir(__class__.NOT_WRITABLE_SUB_DIR)
def test_multiple_writable_dirs(self): dirs_str = ','.join( [__class__.WRITABLE_DIR, __class__.WRITABLE_NON_EXISTING_DIR]) self.assertEqual(dirs_str, writable_dir(dirs_str))
def test_single_writable_dir(self): self.assertEqual(__class__.WRITABLE_DIR, writable_dir(__class__.WRITABLE_DIR))