Skip to content

Commit

Permalink
Add test_get_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alir3z4 committed Jul 12, 2014
1 parent 9bd9a18 commit 4ca9178
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_currency.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
from unittest import TestCase
from currencies import Currency
from currencies import Currency, get_version, __VERSION__


class TestCurrency(TestCase):
def test_get_version(self):
version = get_version()

self.assertIsInstance(version, str)
self.assertEqual(len(version.split('.')), len(__VERSION__))

def test_get_money_currency(self):
currency = Currency('USD')

Expand Down Expand Up @@ -45,3 +51,4 @@ def test_get_money_with_currency_format(self):
currency.get_money_with_currency_format('13,2313,33'),
'$13,2313,33 USD'
)

0 comments on commit 4ca9178

Please sign in to comment.