#NEWLINE# def test_partial_duration_stockout( self ) : #NEWLINE# #INDENT# 'Some reports indicate a stockout but did not last the entire period. No notification.' #NEWLINE# assign_products_to_location ( self . facility , [ self . product ] ) #NEWLINE# create_stock_report ( self . facility , { #NEWLINE# #INDENT# 'tp' : 0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# create_stock_report ( self . facility , { #NEWLINE# #INDENT# 'tp' : 1 , #NEWLINE# #UNINDENT# } ) #NEWLINE# generated = list ( OnGoingStockouts ( self . TEST_DOMAIN ) . get_notifications ( ) ) #NEWLINE# self . assertEqual ( len ( generated ) , 0 )