コード例 #1
0
 def test1_list_mountpoints(self):
     """
     Test listing mount points on this platform
     """
     try:
         mp = MountPoints()
         self.assertIsInstance(mp.keys(), list)
     except FileSystemError, emsg:
         print emsg
         return
コード例 #2
0
    def test1_list_mountpoints(self):

        """
        Test listing mount points on this platform
        """
        try:
            mp = MountPoints()
            self.assertIsInstance(mp.keys(), list)
        except FileSystemError as e:
            print('Error listing mountpoints: {0}'.format(e))
            return
コード例 #3
0
    def test1_list_mountpoints(self):

        """
        Test listing mount points on this platform
        """
        try:
            mp = MountPoints()
            self.assertIsInstance(mp.keys(), list)
        except FileSystemError, emsg:
            print emsg
            return