'Test if the status codes are corresponding to what that user should
see.'

def _test_status_codes(self, url, users_status):

    for (user, status) in users_status:
        if user:
            self.client.login(**user)
        response = self.client.get(url, follow=True)
        self.assertEqual(response.status_code, status)
