#NEWLINE# def test_resize_part_and_fs_up_succeeds( self ) : #NEWLINE# #INDENT# self . mox . StubOutWithMock ( vm_utils , '_repair_filesystem' ) #NEWLINE# self . mox . StubOutWithMock ( utils , 'execute' ) #NEWLINE# dev_path = '/dev/fake' #NEWLINE# partition_path = ( '%s1' % self ) #NEWLINE# vm_utils . _repair_filesystem ( partition_path ) #NEWLINE# self . _call_tune2fs_remove_journal ( partition_path ) #NEWLINE# self . _call_parted_mkpart ( dev_path , 0 , 29 ) #NEWLINE# utils . execute ( 'resize2fs' , partition_path , run_as_root = True ) #NEWLINE# self . _call_tune2fs_add_journal ( partition_path ) #NEWLINE# self . mox . ReplayAll ( ) #NEWLINE# vm_utils . _resize_part_and_fs ( 'fake' , 0 , 20 , 30 , '' )