#NEWLINE# def testInitialize( self ) : #NEWLINE# #INDENT# 'Tests the path specification initialization.' #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( location = '\\test' , parent = self . _path_spec ) #NEWLINE# self . assertIsNotNone ( path_spec ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( data_stream = 'test' , location = '\\test' , parent = self . _path_spec ) #NEWLINE# self . assertIsNotNone ( path_spec ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( mft_entry = 1 , parent = self . _path_spec ) #NEWLINE# self . assertIsNotNone ( _ ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( mft_attribute = 3 , mft_entry = 1 , parent = self . _path_spec ) #NEWLINE# self . assertIsNotNone ( path_spec ) #NEWLINE# path_spec = ntfs_path_spec . NTFSPathSpec ( location = '\\test' , mft_entry = 1 , parent = self . _path_spec ) #NEWLINE# self . assertIsNotNone ( path_spec ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = ntfs_path_spec . NTFSPathSpec ( location = '\\test' , parent = None ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = ntfs_path_spec . NTFSPathSpec ( location = None , parent = self . _path_spec ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = ntfs_path_spec . NTFSPathSpec ( mft_entry = None , parent = self . _path_spec ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = ntfs_path_spec . NTFSPathSpec ( location = '\\test' , parent = self . _path_spec , bogus = 'BOGUS' )