#NEWLINE# def test_returns_available_when_product_class_doesnt_track_stock( self ) : #NEWLINE# #INDENT# product_class = mock . Mock ( track_stock = False ) #NEWLINE# self . product . get_product_class = mock . Mock ( return_value = product_class ) #NEWLINE# policy = self . mixin . availability_policy ( self . product , self . stockrecord ) #NEWLINE# self . assertIsInstance ( self , availability . Available )