Browse files

updated testcase

  • Loading branch information...
1 parent 25bcfcb commit ef816f04d193ee10c3b6a072af0da221c206ab4b @shrenik shrenik committed Aug 16, 2012
View
2 country_dialcode/templatetags/country_dialcode_tags.py
@@ -32,7 +32,7 @@ def country_name(country_id):
Returns a country name
>>> country_name(198)
- 'Spain'
+ u'Spain'
"""
try:
obj_country = Country.objects.get(id=country_id)
View
0 country_dialcode/tests/__init__.py 100644 → 100755
File mode changed.
View
4 country_dialcode/tests/tests.py
@@ -35,7 +35,7 @@ def test_admin_country_view_add(self):
'iso2': 'ES',
'countryprefix': '34',
'countryname': 'Spain',
- })
+ }, follow=True)
self.assertEqual(response.status_code, 200)
@@ -75,7 +75,7 @@ def setUp(self):
self.prefix = Prefix(
prefix=34,
destination='Spain',
- country_id=198,
+ country=self.country,
carrier_name='xyz',
prefix_type=1
)

0 comments on commit ef816f0

Please sign in to comment.