Example #1
0
 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")
Example #2
0
 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')
Example #3
0
 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")
Example #4
0
 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")
Example #5
0
 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")
Example #6
0
 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')
Example #7
0
 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')
Example #8
0
 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')