Ejemplo n.º 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")
Ejemplo n.º 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')
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 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')
Ejemplo n.º 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')
Ejemplo n.º 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')