#NEWLINE# def test_standard( self ) : #NEWLINE# #INDENT# '\n        For the Product Line Item, make sure that the Product rate is not prorated:\n        - base_cost uses the correct monthly fee\n        - base_description is not None\n        - unit_description is None\n        - unit_cost is 0.0\n        - quantity is 1\n        - subtotal = monthly fee\n        ' #NEWLINE# invoice_date = utils . months_from_date ( self . subscription . date_start , random . randint ( 2 , self . subscription_length ) ) #NEWLINE# tasks . generate_invoices ( invoice_date ) #NEWLINE# invoice = self . subscription . invoice_set . latest ( 'date_created' ) #NEWLINE# product_line_items = invoice . lineitem_set . filter ( feature_rate__exact = None ) #NEWLINE# self . assertEqual ( product_line_items . count ( ) , 1 ) #NEWLINE# product_line_item = product_line_items . get ( ) #NEWLINE# self . assertIsNotNone ( product_line_item . base_description ) #NEWLINE# self . assertEqual ( product_line_item . base_cost , self . product_rate . monthly_fee ) #NEWLINE# self . assertIsNone ( product_line_item . unit_description ) #NEWLINE# self . assertEqual ( product_line_item . unit_cost , Decimal ( '0.0000' ) ) #NEWLINE# self . assertEqual ( product_line_item . quantity , 1 ) #NEWLINE# self . assertEqual ( product_line_item . subtotal , self . product_rate . monthly_fee ) #NEWLINE# self . assertEqual ( product_line_items . total , self . product_rate . monthly_fee )