def testInitialize(self):
    path_spec = cpio_path_spec.CPIOPathSpec(
        location=u'/test', parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    with self.assertRaises(ValueError):
      _ = cpio_path_spec.CPIOPathSpec(location=u'/test', parent=None)

    with self.assertRaises(ValueError):
      _ = cpio_path_spec.CPIOPathSpec(location=None, parent=self._path_spec)

    with self.assertRaises(ValueError):
      _ = cpio_path_spec.CPIOPathSpec(
          location=u'/test', parent=self._path_spec, bogus=u'BOGUS')
Tests the path specification initialization.
dataset/ETHPy150Open log2timeline/dfvfs/tests/path/cpio_path_spec.py/CPIOPathSpecTest.testInitialize