You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
367 B
Python
14 lines
367 B
Python
2 years ago
|
from django.test import TestCase
|
||
|
|
||
|
from nano.countries.models import Country
|
||
|
|
||
|
class CountryTest(TestCase):
|
||
|
|
||
|
def test_str(self):
|
||
|
item = Country(iso='no', name='Norway')
|
||
|
self.assertEqual(str(item), item.name)
|
||
|
|
||
|
def test_printable_name(self):
|
||
|
item = Country(iso='no', name='Norway')
|
||
|
self.assertEqual(item.printable_name, item.name)
|