@@ -847,11 +847,11 @@ def test_resolve_location_name_not_exist(self):
847847 def test_issues1425_zeroterm (self ):
848848 category1 = {'categoryCode' : 'cat1' }
849849 price1 = {'id' : 1234 , 'locationGroupId' : '' , "capacityRestrictionMaximum" : "16" ,
850- "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
851- 'categories' : [category1 ], 'termLength' : 36 }
850+ "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
851+ 'categories' : [category1 ], 'termLength' : 36 }
852852 price2 = {'id' : 45678 , 'locationGroupId' : '' , "capacityRestrictionMaximum" : "16" ,
853- "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
854- 'categories' : [category1 ], 'termLength' : 0 }
853+ "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
854+ 'categories' : [category1 ], 'termLength' : 0 }
855855
856856 # Test 0 termLength
857857 price_id = self .ordering .get_item_price_id ("8" , [price2 , price1 ])
@@ -870,16 +870,16 @@ def test_issues1425_zeroterm(self):
870870 def test_issues1425_nonzeroterm (self ):
871871 category1 = {'categoryCode' : 'cat1' }
872872 price1 = {'id' : 1234 , 'locationGroupId' : '' , "capacityRestrictionMaximum" : "16" ,
873- "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
874- 'categories' : [category1 ], 'termLength' : 36 }
873+ "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
874+ 'categories' : [category1 ], 'termLength' : 36 }
875875 price2 = {'id' : 45678 , 'locationGroupId' : '' , "capacityRestrictionMaximum" : "16" ,
876- "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
877- 'categories' : [category1 ], 'termLength' : 0 }
876+ "capacityRestrictionMinimum" : "1" , "capacityRestrictionType" : "STORAGE_SPACE" ,
877+ 'categories' : [category1 ], 'termLength' : 0 }
878878
879879 # Test 36 termLength
880880 price_id = self .ordering .get_item_price_id ("8" , [price2 , price1 ], 36 )
881881 self .assertEqual (1234 , price_id )
882882
883883 # Test None-existing price for term
884884 price_id = self .ordering .get_item_price_id ("8" , [price2 , price1 ], 37 )
885- self .assertEqual (None , price_id )
885+ self .assertEqual (None , price_id )
0 commit comments