<s> """<STR_LIT>""" <EOL> import unittest <EOL> from dfvfs . path import lvm_path_spec <EOL> from tests . path import test_lib <EOL> class LVMPathSpecTest ( test_lib . PathSpecTestCase ) : <EOL> """<STR_LIT>""" <EOL> def testInitialize ( self ) : <EOL> """<STR_LIT>""" <EOL> path_spec = lvm_path_spec . LVMPathSpec ( parent = self . _path_spec ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> location = u'<STR_LIT>' , parent = self . _path_spec ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> parent = self . _path_spec , volume_index = <NUM_LIT:1> ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> location = u'<STR_LIT>' , parent = self . _path_spec , volume_index = <NUM_LIT:1> ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = lvm_path_spec . LVMPathSpec ( parent = None ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = lvm_path_spec . LVMPathSpec ( <EOL> parent = self . _path_spec , bogus = u'<STR_LIT>' ) <EOL> def testComparable ( self ) : <EOL> """<STR_LIT>""" <EOL> path_spec = lvm_path_spec . LVMPathSpec ( parent = self . _path_spec ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> expected_comparable = u'<STR_LIT:\n>' . join ( [ <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' ] ) <EOL> self . assertEqual ( path_spec . comparable , expected_comparable ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> location = u'<STR_LIT>' , parent = self . _path_spec ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> expected_comparable = u'<STR_LIT:\n>' . join ( [ <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' ] ) <EOL> self . assertEqual ( path_spec . comparable , expected_comparable ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> parent = self . _path_spec , volume_index = <NUM_LIT:1> ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> expected_comparable = u'<STR_LIT:\n>' . join ( [ <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' ] ) <EOL> self . assertEqual ( path_spec . comparable , expected_comparable ) <EOL> path_spec = lvm_path_spec . LVMPathSpec ( <EOL> location = u'<STR_LIT>' , parent = self . _path_spec , volume_index = <NUM_LIT:1> ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> expected_comparable = u'<STR_LIT:\n>' . join ( [ <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' , <EOL> u'<STR_LIT>' ] ) <EOL> self . assertEqual ( path_spec . comparable , expected_comparable ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
