This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #825 from glogiotatidis/master
[fix bug 1073402] Add X-COUNTRY-CODE to ical feed.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from nose.tools import eq_ | ||
|
||
from remo.base.helpers import get_country_code | ||
from remo.base.tests import RemoTestCase | ||
|
||
|
||
class GetCountryNameTests(RemoTestCase): | ||
def test_base(self): | ||
eq_(get_country_code('Greece'), 'gr') | ||
eq_(get_country_code('greece'), 'gr') | ||
|
||
def test_country_name_does_not_match(self): | ||
eq_(get_country_code('FOO'), '') |