We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa11159 commit 7c4274bCopy full SHA for 7c4274b
1 file changed
tests/test.py
@@ -50,6 +50,11 @@ def test_get_rate_with_valid_codes(self):
50
51
# check if return value is float
52
self.assertTrue(isinstance(rate, float))
53
+
54
+ def test_get_rate_with_valid_codes_same_currency(self):
55
+ rate = get_rate('USD', 'USD')
56
+ # rate should be 1.
57
+ self.assertEqual(1., rate)
58
59
def test_get_rate_with_date(self):
60
date_obj = datetime.datetime.strptime('2010-05-10', "%Y-%m-%d").date()
0 commit comments