#NEWLINE# def test_path( self ) : #NEWLINE# #INDENT# 'Verify that the path property works.' #NEWLINE# p = ProductFactory ( slug = 'p' ) #NEWLINE# t1 = TopicFactory ( product = p , slug = 't1' ) #NEWLINE# t2 = TopicFactory ( product = p , slug = 't2' , parent = t1 ) #NEWLINE# t3 = TopicFactory ( product = p , slug = 't3' , parent = t2 ) #NEWLINE# eq_ ( t1 . path , [ t1 . slug ] ) #NEWLINE# eq_ ( t2 . path , [ t1 . slug , t2 . slug ] ) #NEWLINE# eq_ ( t3 . path , [ t1 . slug , t2 . slug , t3 . slug ] )