def test_get_id_2(self): """Test #2: Test that the ID is returned correctly for a device when present""" self.assertEqual(linux.get_id("/dev/sdb"), "ata-ST1000DM003-1CH162_W1D2BRDP")
def test_get_id_3(self): """Test #3: Test that Unknown is returned for a device/partition that is not present""" self.assertEqual(linux.get_id("/dev/sdf"), "Unknown")
def test_get_id_1(self): """Test #1: Test that the ID is returned correctly for a partition when present""" self.assertEqual( linux.get_id("/dev/sda1"), "ata-Samsung_SSD_850_EVO_500GB_S21JNXAGC48182L-part1")