#NEWLINE# def testInitialize( self ) : #NEWLINE# #INDENT# 'Tests the path specification initialization.' #NEWLINE# path_spec = cpio_path_spec . CPIOPathSpec ( location = '/test' , parent = path_spec . _path_spec ) #NEWLINE# self . assertIsNotNone ( path_spec ) #NEWLINE# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = cpio_path_spec . CPIOPathSpec ( location = '/test' , parent = None ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = cpio_path_spec . CPIOPathSpec ( location = None , parent = self . _path_spec ) #NEWLINE# #UNINDENT# with self . assertRaises ( ValueError ) : #NEWLINE# #INDENT# _ = cpio_path_spec . CPIOPathSpec ( location = '/test' , parent = self . _path_spec , bogus = 'BOGUS' )