Пример #1
0
 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")
Пример #2
0
 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')
Пример #3
0
 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)
Пример #4
0
 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")))
Пример #5
0
 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")))
Пример #6
0
 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)
Пример #7
0
 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')))
Пример #8
0
 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')))