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')
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")
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")
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")
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')
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')
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', )
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)
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)