This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
223679a
commit 868b876
Showing
2 changed files
with
9 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
from gratipay.utils import fake_data | ||
from gratipay.testing import Harness | ||
|
||
from gratipay.models import community | ||
|
||
class TestFakeData(Harness): | ||
""" | ||
|
@@ -34,3 +34,9 @@ def test_fake_participant_identity(self): | |
crusher = self.make_participant('crusher', email_address='[email protected]') | ||
country_id = fake_data.fake_participant_identity(crusher) | ||
assert [x.country.id for x in crusher.list_identity_metadata()] == [country_id] | ||
|
||
def test_slugize(self): | ||
""" | ||
Just a test to ensure that slugize can handle single quotes | ||
""" | ||
assert community.slugize("D'Amorebury") == "d-amorebury" |