Skip to content

Commit

Permalink
Grammar edit to test method names.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzenderman committed Dec 3, 2013
1 parent 6e2dd29 commit de534c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@ def tearDown(self):
RateSource.objects.all().delete()
Rate.objects.all().delete()

def test_conversion_fail_when_source_do_not_exists(self):
def test_conversion_fail_when_source_does_not_exist(self):
with self.assertRaises(CurrencyConversionException) as cm:
convert_money(10.0, "PLN", "EUR")

self.assertIn("Rate for fake-backend source do not exists", str(cm.exception))

def test_conversion_fail_when_currency_from_do_not_exists(self):
def test_conversion_fail_when_currency_from_does_not_exist(self):
RateSource.objects.create(name="fake-backend")

with self.assertRaises(CurrencyConversionException) as cm:
convert_money(10.0, "PLN", "EUR")

self.assertIn("Rate for PLN in fake-backend do not exists", str(cm.exception))

def test_conversion_fail_when_currency_to_do_not_exists(self):
def test_conversion_fail_when_currency_to_does_not_exist(self):
source = RateSource.objects.create(name="fake-backend")
Rate.objects.create(source=source, currency="PLN", value=0.99999)

Expand Down

0 comments on commit de534c5

Please sign in to comment.