<s> """<STR_LIT>""" <EOL> import unittest <EOL> from dfvfs . path import data_range_path_spec <EOL> from tests . path import test_lib <EOL> class DataRangePathSpecTest ( test_lib . PathSpecTestCase ) : <EOL> """<STR_LIT>""" <EOL> def testInitialize ( self ) : <EOL> """<STR_LIT>""" <EOL> path_spec = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = <NUM_LIT> , range_size = <NUM_LIT> , parent = self . _path_spec ) <EOL> self . assertIsNotNone ( path_spec ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = <NUM_LIT> , range_size = <NUM_LIT> , parent = None ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = <NUM_LIT> , range_size = None , parent = self . _path_spec ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = None , range_size = <NUM_LIT> , parent = self . _path_spec ) <EOL> with self . assertRaises ( ValueError ) : <EOL> _ = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = None , range_size = <NUM_LIT> , parent = self . _path_spec , <EOL> bogus = u'<STR_LIT>' ) <EOL> def testComparable ( self ) : <EOL> """<STR_LIT>""" <EOL> path_spec = data_range_path_spec . DataRangePathSpec ( <EOL> range_offset = <NUM_LIT> , range_size = <NUM_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> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
