def test_from_bool_passthrough(self): """ Test from_bool with 'passthrough' """ self.assertEqual(zfs.from_bool("passthrough"), "passthrough") self.assertEqual(zfs.from_bool(zfs.from_bool("passthrough")), "passthrough")
def test_from_bool_passthrough(self): ''' Test from_bool with 'passthrough' ''' self.assertEqual(zfs.from_bool('passthrough'), 'passthrough') self.assertEqual(zfs.from_bool(zfs.from_bool('passthrough')), 'passthrough')
def test_from_bool_none(self): """ Test from_bool with 'none' """ self.assertEqual(zfs.from_bool("none"), None) self.assertEqual(zfs.from_bool(zfs.from_bool("none")), None)
def test_from_bool_off(self): """ Test from_bool with 'off' """ self.assertFalse(zfs.from_bool("off")) self.assertFalse(zfs.from_bool(zfs.from_bool("off")))
def test_from_bool_on(self): """ Test from_bool with 'on' """ self.assertTrue(zfs.from_bool("on")) self.assertTrue(zfs.from_bool(zfs.from_bool("on")))
def test_from_bool_none(self): ''' Test from_bool with 'none' ''' self.assertEqual(zfs.from_bool('none'), None) self.assertEqual(zfs.from_bool(zfs.from_bool('none')), None)
def test_from_bool_off(self): ''' Test from_bool with 'off' ''' self.assertFalse(zfs.from_bool('off')) self.assertFalse(zfs.from_bool(zfs.from_bool('off')))
def test_from_bool_on(self): ''' Test from_bool with 'on' ''' self.assertTrue(zfs.from_bool('on')) self.assertTrue(zfs.from_bool(zfs.from_bool('on')))