def test_from_bool_alt_passthrough(self): """ Test from_bool_alt with 'passthrough' """ self.assertEqual(zfs.from_bool_alt("passthrough"), "passthrough") self.assertEqual(zfs.from_bool_alt(zfs.from_bool_alt("passthrough")), "passthrough")
def test_from_bool_alt_passthrough(self): ''' Test from_bool_alt with 'passthrough' ''' self.assertEqual(zfs.from_bool_alt('passthrough'), 'passthrough') self.assertEqual(zfs.from_bool_alt(zfs.from_bool_alt('passthrough')), 'passthrough')
def test_from_bool_alt_none(self): """ Test from_bool_alt with 'none' """ self.assertEqual(zfs.from_bool_alt("none"), None) self.assertEqual(zfs.from_bool_alt(zfs.from_bool_alt("none")), None)
def test_from_bool_alt_no(self): """ Test from_bool_alt with 'no' """ self.assertFalse(zfs.from_bool_alt("no")) self.assertFalse(zfs.from_bool_alt(zfs.from_bool_alt("no")))
def test_from_bool_alt_yes(self): """ Test from_bool_alt with 'yes' """ self.assertTrue(zfs.from_bool_alt("yes")) self.assertTrue(zfs.from_bool_alt(zfs.from_bool_alt("yes")))
def test_from_bool_alt_none(self): ''' Test from_bool_alt with 'none' ''' self.assertEqual(zfs.from_bool_alt('none'), None) self.assertEqual(zfs.from_bool_alt(zfs.from_bool_alt('none')), None)
def test_from_bool_alt_no(self): ''' Test from_bool_alt with 'no' ''' self.assertFalse(zfs.from_bool_alt('no')) self.assertFalse(zfs.from_bool_alt(zfs.from_bool_alt('no')))
def test_from_bool_alt_yes(self): ''' Test from_bool_alt with 'yes' ''' self.assertTrue(zfs.from_bool_alt('yes')) self.assertTrue(zfs.from_bool_alt(zfs.from_bool_alt('yes')))