Fix markets tests

This commit is contained in:
Mark Veidemanis 2022-03-24 20:24:35 +00:00
parent 49b1f0ea52
commit 0094da841e
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 6 additions and 7 deletions

View File

@ -46,23 +46,22 @@ $PAYMENT$
payment_details_text = self.markets.format_payment_details("GBP", payment_details)
ad_text = self.markets.format_ad("XMR", "GBP", payment_details_text)
expected = """* Set **Country of recipient's bank** to **"United Kingdom"**
* Company name: **PATHOGEN LIMITED**
* Recipient name: Mark Veidemanis
* Sort code: **02-03-04**
* Account number: **0023-0045**
* Please send in **GBP**
* If you are asked for address information, please use **24 Holborn Viaduct, London, England, EC1A 2BN**
* The post code is **EC1A 2BN**
* Set **Company name** to **"PATHOGEN LIMITED"**"""
print("EXPECT", ad_text)
self.assertEqual(ad_text, expected)
def test_format_payment_details(self):
payment_details = {"sort_code": "02-03-04", "account_number": "0023-0045"}
payment_details_text = self.markets.format_payment_details("GBP", payment_details)
expected = """* Company name: **PATHOGEN LIMITED**
expected = """* Recipient name: Mark Veidemanis
* Sort code: **02-03-04**
* Account number: **0023-0045**
* Please send in **GBP**
* If you are asked for address information, please use **24 Holborn Viaduct, London, England, EC1A 2BN**
* The post code is **EC1A 2BN**"""
* Please send in **GBP**"""
print("EXPECT DETAIL", payment_details_text)
self.assertEqual(payment_details_text, expected)