Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def checklisttest::TestCheckListCreation::test_CheckListCreateMemoryTest (   self  ) 

Create a checklist with no memory leaks

libxml2 requires special memory handling.  Check that we can create a
CheckList and destroy it without any memory leaks from the libxml2
library.

Definition at line 240 of file checklisttest.py.

00240                                             :
        '''Create a checklist with no memory leaks

        libxml2 requires special memory handling.  Check that we can create a
        CheckList and destroy it without any memory leaks from the libxml2
        library.
        '''
        self.checklist = checklist.CheckList(os.path.join(self.dataDir,
            'minimal-valid.xml'))
        libxml2.cleanupParser()
        self.assert_(libxml2.debugMemory(1) == 0,
                'FAIL: %d bytes leaked' % (libxml2.debugMemory(1)))
        del self.checklist
        self.checklist = checklist.CheckList(os.path.join(self.dataDir,
            'fedoraus.xml'))
        libxml2.cleanupParser()
        self.assert_(libxml2.debugMemory(1) == 0,
                'FAIL: %d bytes leaked' % (libxml2.debugMemory(1)))
        del self.checklist

def suite():


Generated by  Doxygen 1.6.0   Back to index