def testInitialize(self):
    path_spec = compressed_stream_path_spec.CompressedStreamPathSpec(
        compression_method=u'test', parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    with self.assertRaises(ValueError):
      _ = compressed_stream_path_spec.CompressedStreamPathSpec(
          compression_method=u'test', parent=None)

    with self.assertRaises(ValueError):
      _ = compressed_stream_path_spec.CompressedStreamPathSpec(
          compression_method=None, parent=self._path_spec)

    with self.assertRaises(ValueError):
      _ = compressed_stream_path_spec.CompressedStreamPathSpec(
          compression_method=u'test', parent=self._path_spec, bogus=u'BOGUS')
Tests the path specification initialization.
dataset/ETHPy150Open log2timeline/dfvfs/tests/path/compressed_stream_path_spec.py/CompressedStreamPathSpecTest.testInitialize