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), )
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))
def test__blockdevice(self): blockdevice = factory.make_name('blockdevice') self.assertEquals(blockdevice, smartctl.make_device_name(blockdevice))