Example #1
0
    def ____test_encoding(self):
        html = api.get_change_plan_form(
            plan_code="myplan",
            subscription_id="403bfb8cefa599c6a3af954293b64987")

        self.assertTrue('<form action="/change-plan/" method="POST">' in html,
                        html)
        self.assertTrue(
            'input type="hidden" name="plan_code" value="myplan">' in html,
            html)
Example #2
0
 def test_encoding(self):
     html = api.get_change_plan_form(plan_code="myplan")
     
     self.assertTrue('<form action="/change-plan/" method="POST">' in html, html)
     self.assertTrue('input type="hidden" name="plan_code" value="myplan">' in html, html)
Example #3
0
def change_plan_form(plan_code, subscription_id):
    return get_change_plan_form(plan_code, subscription_id)
Example #4
0
def change_plan_form(plan_code):
    return get_change_plan_form(plan_code)
Example #5
0
def change_plan_form(plan_code, subscription_id):
    return get_change_plan_form(plan_code, subscription_id)