Refactored code and added app as a parameter in get_stripe_plan_id

This commit is contained in:
M.Ravi 2017-08-17 18:17:52 +02:00
parent ecbbe1eb6d
commit b0b1b6091a

View file

@ -136,7 +136,7 @@ class StripePlanTestCase(TestStripeCustomerDescription):
"""
def test_get_stripe_plan_id_string(self):
plan_id_string = StripeUtils.get_stripe_plan_id_string(cpu=2, ram=20, ssd=100, version=1)
plan_id_string = StripeUtils.get_stripe_plan_id(cpu=2, ram=20, ssd=100, version=1, app='dcl')
self.assertEqual(plan_id_string, 'dcl-v1-cpu-2-ram-20gb-ssd-100gb')
def test_get_or_create_plan(self):