Beispiel #1
0
 def test_from_str_passthrough(self):
     '''
     Test from_str with 'passthrough'
     '''
     self.assertEqual(zfs.from_str('passthrough'), 'passthrough')
     self.assertEqual(zfs.from_str(zfs.from_str('passthrough')),
                      'passthrough')
Beispiel #2
0
 def test_from_str_passthrough(self):
     """
     Test from_str with 'passthrough'
     """
     self.assertEqual(zfs.from_str("passthrough"), "passthrough")
     self.assertEqual(zfs.from_str(zfs.from_str("passthrough")),
                      "passthrough")
Beispiel #3
0
 def test_from_str_space(self):
     """
     Test from_str with "\"my pool/my dataset\"
     """
     self.assertEqual(zfs.from_str('"my pool/my dataset"'),
                      "my pool/my dataset")
     self.assertEqual(zfs.from_str(zfs.from_str('"my pool/my dataset"')),
                      "my pool/my dataset")
Beispiel #4
0
 def test_from_str_squote_space(self):
     '''
     Test from_str with "my pool/jorge's dataset"
     '''
     self.assertEqual(zfs.from_str("my pool/jorge's dataset"),
                      "my pool/jorge's dataset")
     self.assertEqual(zfs.from_str(zfs.from_str("my pool/jorge's dataset")),
                      "my pool/jorge's dataset")
Beispiel #5
0
 def test_from_str_space(self):
     '''
     Test from_str with "\"my pool/my dataset\"
     '''
     self.assertEqual(zfs.from_str('"my pool/my dataset"'),
                      'my pool/my dataset')
     self.assertEqual(zfs.from_str(zfs.from_str('"my pool/my dataset"')),
                      'my pool/my dataset')
Beispiel #6
0
 def test_from_str_dquote_space(self):
     '''
     Test from_str with "my pool/the \"good\" stuff"
     '''
     self.assertEqual(zfs.from_str("my pool/the \"good\" stuff"),
                      'my pool/the "good" stuff')
     self.assertEqual(
         zfs.from_str(zfs.from_str("my pool/the \"good\" stuff")),
         'my pool/the "good" stuff')
Beispiel #7
0
 def test_from_str_dquote_space(self):
     """
     Test from_str with "my pool/the \"good\" stuff"
     """
     self.assertEqual(zfs.from_str('my pool/the "good" stuff'),
                      'my pool/the "good" stuff')
     self.assertEqual(
         zfs.from_str(zfs.from_str('my pool/the "good" stuff')),
         'my pool/the "good" stuff',
     )
Beispiel #8
0
 def test_from_str_none(self):
     """
     Test from_str with 'none'
     """
     self.assertEqual(zfs.from_str("none"), None)
     self.assertEqual(zfs.from_str(zfs.from_str("none")), None)
Beispiel #9
0
 def test_from_str_none(self):
     '''
     Test from_str with 'none'
     '''
     self.assertEqual(zfs.from_str('none'), None)
     self.assertEqual(zfs.from_str(zfs.from_str('none')), None)