def test_to_bool_passthrough(self): """ Test to_bool with 'passthrough' """ self.assertEqual(zfs.to_bool("passthrough"), "passthrough") self.assertEqual(zfs.to_bool(zfs.to_bool("passthrough")), "passthrough")
def test_to_bool_passthrough(self): ''' Test to_bool with 'passthrough' ''' self.assertEqual(zfs.to_bool('passthrough'), 'passthrough') self.assertEqual(zfs.to_bool(zfs.to_bool('passthrough')), 'passthrough')
def test_to_bool_none(self): """ Test to_bool with None """ self.assertEqual(zfs.to_bool(None), "none") self.assertEqual(zfs.to_bool(zfs.to_bool(None)), "none")
def test_to_bool_false(self): """ Test to_bool with False """ self.assertEqual(zfs.to_bool(False), "off") self.assertEqual(zfs.to_bool(zfs.to_bool(False)), "off")
def test_to_bool_true(self): """ Test to_bool with True """ self.assertEqual(zfs.to_bool(True), "on") self.assertEqual(zfs.to_bool(zfs.to_bool(True)), "on")
def test_to_bool_none(self): ''' Test to_bool with None ''' self.assertEqual(zfs.to_bool(None), 'none') self.assertEqual(zfs.to_bool(zfs.to_bool(None)), 'none')
def test_to_bool_false(self): ''' Test to_bool with False ''' self.assertEqual(zfs.to_bool(False), 'off') self.assertEqual(zfs.to_bool(zfs.to_bool(False)), 'off')
def test_to_bool_true(self): ''' Test to_bool with True ''' self.assertEqual(zfs.to_bool(True), 'on') self.assertEqual(zfs.to_bool(zfs.to_bool(True)), 'on')