def test_enable_lvm_enabled(self): self.config.return_value = '/dev/sdd' self.assertTrue(contexts.enable_lvm())
def test_enable_lvm_disabled(self): for v in [None, 'None', 'none']: self.config.return_value = v self.assertFalse(contexts.enable_lvm())