コード例 #1
0
 def test_get_uuid_2(self):
     """Test #2: Test that Unknown is returned when the UUID is not present"""
     self.assertEqual(linux.get_uuid("/dev/sda3"), "Unknown")
コード例 #2
0
 def test_get_uuid_3(self):
     """Test #3: Test that Unknown is returned when we ask for the UUID of a disk that is not present"""
     self.assertEqual(linux.get_uuid("/dev/sda34"), "Unknown")
コード例 #3
0
 def test_get_uuid_1(self):
     """Test #1: Test that the UUID is returned correctly when present"""
     self.assertEqual(linux.get_uuid("/dev/sda1"), "8243-0631")