Back to index

python3.2  3.2.2
Public Member Functions
test.test_trace.Test_Ignore Class Reference

List of all members.

Public Member Functions

def test_ignored

Detailed Description

Definition at line 340 of file test_trace.py.


Member Function Documentation

Definition at line 341 of file test_trace.py.

00341 
00342     def test_ignored(self):
00343         jn = os.path.join
00344         ignore = trace._Ignore(['x', 'y.z'], [jn('foo', 'bar')])
00345         self.assertTrue(ignore.names('x.py', 'x'))
00346         self.assertFalse(ignore.names('xy.py', 'xy'))
00347         self.assertFalse(ignore.names('y.py', 'y'))
00348         self.assertTrue(ignore.names(jn('foo', 'bar', 'baz.py'), 'baz'))
00349         self.assertFalse(ignore.names(jn('bar', 'z.py'), 'z'))
00350         # Matched before.
00351         self.assertTrue(ignore.names(jn('bar', 'baz.py'), 'baz'))
00352 

Here is the call graph for this function:


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