def test_search__returns_correct_results(self):
    obj_1 = FirstSearchModelFactory.create(email='example@example.com')
    FirstSearchModelFactory.create(email='example@example.com')
    response = self.client.post(tool_root_url, {'term': 'example@example.com'})
    self.assertContains(response, '<h2>Gdpr_Assist_Tests_App: First Search Model</h2>')
    self.assertContains(response, '<input name="obj_pk" value="{}-{}" class="action-select" type="checkbox">'.format(ContentType.objects.get_for_model(FirstSearchModel).pk, obj_1.pk))
def test_search__returns_correct_results(self):
    obj_1 = FirstSearchModelFactory.create(email='example@example.com')
    FirstSearchModelFactory.create(email='example@example.com')
    response = self.client.post(tool_root_url, {'term': 'example@example.com'})
    self.assertContains(response, '<h2>Gdpr_Assist_Tests_App: First Search Model</h2>')
    self.assertContains(response, '<input name="obj_pk" value="{}-{}" class="action-select" type="checkbox">'.format(ContentType.objects.get_for_model(FirstSearchModel).pk, obj_1.pk))