コード例 #1
0
 def test_is_directory_on_nfs_with_nfs_and_data_bundle_on_nfs(self):
     """Test is_directory_on_nfs with nfs and data bundle on nfs."""
     self.assertTrue(setup.is_directory_on_nfs('/nfs/dir1'))
コード例 #2
0
 def test_is_directory_on_nfs_with_nfs_and_data_bundle_on_local(self):
     """Test is_directory_on_nfs with nfs and data bundle on local."""
     self.assertFalse(setup.is_directory_on_nfs('/tmp/dir1'))
コード例 #3
0
 def test_is_directory_on_nfs_without_nfs(self):
     """Test is_directory_on_nfs without nfs."""
     environment.remove_key('NFS_ROOT')
     self.assertFalse(setup.is_directory_on_nfs('/nfs/dir1'))