def test_fitler_by_users_last_name(self):
        mommy.make(User, last_name='Gaga')
        mommy.make(User, last_name='Spears')
        response = self.client.get(
            reverse('users_report'), {'search_name': 'Gaga'})
        self.assertContains(response, 'Gaga')
        self.assertNotContains(response, 'Spears')
Filter by last names.
dataset/ETHPy150Open ofa/connect/open_connect/reporting/tests/test_views.py/UserReportListViewTest.test_fitler_by_users_last_name