示例#1
0
 def test_device(self):
     blockdevice = factory.make_name("blockdevice")
     device = factory.make_name("device")
     self.assertEquals(
         "%s %s" % (blockdevice, device),
         smartctl.make_device_name(blockdevice, device),
     )
示例#2
0
 def test__device(self):
     blockdevice = factory.make_name('blockdevice')
     device = factory.make_name('device')
     self.assertEquals('%s %s' % (blockdevice, device),
                       smartctl.make_device_name(blockdevice, device))
示例#3
0
 def test__blockdevice(self):
     blockdevice = factory.make_name('blockdevice')
     self.assertEquals(blockdevice, smartctl.make_device_name(blockdevice))