

def testInitialize(self):
    'Tests the path specification initialization.'
    path_spec = encoded_stream_path_spec.EncodedStreamPathSpec(encoding_method='test', parent=self._path_spec)
    self.assertIsNotNone(path_spec)
    with self.assertRaises(ValueError):
        _ = encoded_stream_path_spec.EncodedStreamPathSpec(encoding_method='test', parent=None)
    with self.assertRaises(ValueError):
        _ = encoded_stream_path_spec.EncodedStreamPathSpec(encoding_method=None, parent=self._path_spec)
    with self.assertRaises(ValueError):
        _ = encoded_stream_path_spec.EncodedStreamPathSpec(encoding_method='test', parent=self._path_spec, bogus='BOGUS')

dataset/ETHPy150Open log2timeline/dfvfs/tests/path/encoded_stream_path_spec.py EncodedStreamPathSpecTest.testInitialize/original