def testComparable(self):
    path_spec = tsk_partition_path_spec.TSKPartitionPathSpec(
        parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    expected_comparable = u'\n'.join([
        u'type: TEST',
        u'type: TSK_PARTITION',
        u''])

    self.assertEqual(path_spec.comparable, expected_comparable)

    path_spec = tsk_partition_path_spec.TSKPartitionPathSpec(
        location=u'/p2', parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    expected_comparable = u'\n'.join([
        u'type: TEST',
        u'type: TSK_PARTITION, location: /p2',
        u''])

    self.assertEqual(path_spec.comparable, expected_comparable)

    path_spec = tsk_partition_path_spec.TSKPartitionPathSpec(
        part_index=1, parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    expected_comparable = u'\n'.join([
        u'type: TEST',
        u'type: TSK_PARTITION, part index: 1',
        u''])

    self.assertEqual(path_spec.comparable, expected_comparable)

    path_spec = tsk_partition_path_spec.TSKPartitionPathSpec(
        start_offset=0x2000, parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    expected_comparable = u'\n'.join([
        u'type: TEST',
        u'type: TSK_PARTITION, start offset: 0x00002000',
        u''])

    self.assertEqual(path_spec.comparable, expected_comparable)

    path_spec = tsk_partition_path_spec.TSKPartitionPathSpec(
        location=u'/p2', part_index=1, parent=self._path_spec)

    self.assertIsNotNone(path_spec)

    expected_comparable = u'\n'.join([
        u'type: TEST',
        u'type: TSK_PARTITION, location: /p2, part index: 1',
        u''])

    self.assertEqual(path_spec.comparable, expected_comparable)
throw exception if non-zero status
dataset/ETHPy150Open log2timeline/dfvfs/tests/path/tsk_partition_path_spec.py/TSKPartitionPathSpecTest.testComparable--crossover with--dataset/ETHPy150Open rdhyee/working-open-data-2014/notebooks/Day_19_B_HackFSM.py/FSM._check_status