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