def METHOD_NAME(self):
    UserFactory(username="foo", profile__name="Foo Bar")
    UserFactory(username="bam", profile__name="Bar Bam")
    # Searching for "bam" should return 1 user.
    response = self.client.get(urlparams(reverse("community.search"), q="bam"))
    self.assertEqual(response.status_code, 200)
    doc = pq(response.content)
    self.assertEqual(len(doc(".results-user")), 1)
    # Searching for "bar" should return both users.
    response = self.client.get(urlparams(reverse("community.search"), q="bar"))
    self.assertEqual(response.status_code, 200)
    doc = pq(response.content)
    self.assertEqual(len(doc(".results-user")), 2)