bitcoin: uppercase currencies for api

This commit is contained in:
mutantmonkey
2013-10-25 18:53:21 -07:00
parent d7654c65d1
commit 2e995476ee
2 changed files with 10 additions and 2 deletions

View File

@@ -83,3 +83,10 @@ class TestCalc(unittest.TestCase):
out = self.phenny.say.call_args[0][0]
self.assertNotRegex(out, r'[\d\.]+ BTC')
def test_lettercase(self):
input = Mock(group=self.makegroup('1', 'btc', 'EuR'))
bitcoin(self.phenny, input)
out = self.phenny.say.call_args[0][0]
self.assertRegex(out, r'\d+\.\d{2} EUR')