Back to index

enigmail  1.4.3
Public Member Functions
unit-expandlibs.TestSectionFinder Class Reference

List of all members.

Public Member Functions

def test_getSections

Detailed Description

Definition at line 310 of file unit-expandlibs.py.


Member Function Documentation

def unit-expandlibs.TestSectionFinder.test_getSections (   self)
Test SectionFinder

Definition at line 311 of file unit-expandlibs.py.

00311 
00312     def test_getSections(self):
00313         '''Test SectionFinder'''
00314         # Divert subprocess.Popen
00315         subprocess_popen = subprocess.Popen
00316         subprocess.Popen = SubprocessPopen(self)
00317         config.EXPAND_LIBS_ORDER_STYLE = 'linkerscript'
00318         config.OBJ_SUFFIX = '.o'
00319         config.LIB_SUFFIX = '.a'
00320         finder = SectionFinder(['foo.o', 'bar.o'])
00321         self.assertEqual(finder.getSections('foobar'), [])
00322         self.assertEqual(finder.getSections('_Z6barbazv'), ['.text.hot._Z6barbazv'])
00323         self.assertEqual(finder.getSections('_Z6foobarv'), ['.text._Z6foobarv', '.text._ZThn4_6foobarv'])
00324         self.assertEqual(finder.getSections('_ZThn4_6foobarv'), ['.text._Z6foobarv', '.text._ZThn4_6foobarv'])
00325         subprocess.Popen = subprocess_popen

Here is the call graph for this function:


The documentation for this class was generated from the following file: