#NEWLINE# def test_categories( self ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# product = Product . objects . get ( slug = 'product-1' ) #NEWLINE# category_slugs = [ c . slug for c in product . get_categories ( ) ] #NEWLINE# self . assertEqual ( category_slugs , [ 'category-1-1-1' ] )