mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
2to3 test files
This commit is contained in:
parent
052d28737b
commit
97d46d0632
3 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
|
2
vendor/paypal/standard/pdt/tests/__init__.py
vendored
2
vendor/paypal/standard/pdt/tests/__init__.py
vendored
|
@ -1 +1 @@
|
|||
from test_pdt import *
|
||||
from .test_pdt import *
|
6
vendor/paypal/standard/pdt/tests/test_pdt.py
vendored
6
vendor/paypal/standard/pdt/tests/test_pdt.py
vendored
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue