Beispiel #1
0
 def test_single_writable_non_existing_dir(self):
     self.assertEqual(__class__.WRITABLE_NON_EXISTING_DIR,
                      writable_dir(__class__.WRITABLE_NON_EXISTING_DIR))
Beispiel #2
0
 def test_single_non_writable_sub_dir(self):
     with self.assertRaises(Error) as cm:
         writable_dir(__class__.NOT_WRITABLE_SUB_DIR)
Beispiel #3
0
 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))
Beispiel #4
0
 def test_single_writable_dir(self):
     self.assertEqual(__class__.WRITABLE_DIR,
                      writable_dir(__class__.WRITABLE_DIR))