2to3 test files

This commit is contained in:
Jonathan Math 2020-06-17 05:33:59 -04:00
parent 052d28737b
commit 97d46d0632
3 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ class SimpleTest(TestCase):
"""
Tests that 1 + 1 always equals 2.
"""
self.failUnlessEqual(1 + 1, 2)
self.assertEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.

View file

@ -1 +1 @@
from test_pdt import *
from .test_pdt import *

View file

@ -20,11 +20,11 @@ class DummyPayPalPDT(object):
self.response = ''
def update_with_get_params(self, get_params):
if get_params.has_key('tx'):
if 'tx' in get_params:
self.context_dict['txn_id'] = get_params.get('tx')
if get_params.has_key('amt'):
if 'amt' in get_params:
self.context_dict['mc_gross'] = get_params.get('amt')
if get_params.has_key('cm'):
if 'cm' in get_params:
self.context_dict['custom'] = get_params.get('cm')
def _postback(self, test=True):