#NEWLINE# def test_absolute_url( self ) : #NEWLINE# #INDENT# p = ProductFactory ( ) #NEWLINE# expected = '/products/{p}' . format ( p = p . slug ) #NEWLINE# actual = p . get_absolute_url ( ) #NEWLINE# eq_ ( actual , expected )