def __init__(self):
     self.gateway = Gateway(
         settings.PAYMENTEXPRESS_POST_URL, settings.PAYMENTEXPRESS_USERNAME,
         settings.PAYMENTEXPRESS_PASSWORD,
         getattr(settings, 'PAYMENTEXPRESS_CURRENCY', 'AUD'))
 def setUp(self):
     self.gateway = Gateway('http://localhost/', 'TangentSnowball',
                            's3cr3t', 'AUD')
 def test_currency_code_has_three_characters(self):
     gateway = Gateway('http://localhost/', 'TangentSnowball', 's3cr3t',
                       'au')
     with self.assertRaises(ValueError):
         gateway.refund(dps_txn_ref="abc", merchant_ref="123", amount=1.23)
 def setUp(self):
     self.gateway = Gateway(
         post_url='https://sec.paymentexpress.com/pxpost.aspx',
         username='******',
         password='******',
         currency='AUD')