Permalink
Browse files

Add test for alias searching

  • Loading branch information...
1 parent 636e3bb commit 99d42c70882eec083bbd7cbdf0098eaf59dbf8a0 @guaq guaq committed May 12, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 membership/tests.py
View
@@ -1075,4 +1075,7 @@ def test_find_by_organization_name(self):
self.assertEquals(len(Membership.search(self.o.organization.organization_name)), 1)
def test_find_by_alias(self):
- pass
+ alias = Alias(owner=self.m,
+ name=u"this.alias.should.be.unique")
+ alias.save()
+ self.assertEquals(len(Membership.search(alias.name)), 1)

0 comments on commit 99d42c7

Please sign in to comment.