def create_history_content(self):
        for index in range(1, 6):
            patient_test = Patient(id=index,
                                   age_range=index,
                                   classification='1')
            patient_test.save()

        staff = Staff(name='Atendente', id_user='******')
        staff.save()
 def test_manage_accounts_view(self, client):
     stafflogin = Staff.objects.create_superuser(**self.default_user_data())
     response = client.post('/login', {
         'username': '******',
         'password': "******"
     })
     staff1 = Staff(id_user='******')
     staff1.save()
     allstaff = [stafflogin, staff1]
     response = client.get('/accounts/')
     assert response.status_code == 200
     assert list(response.context['staffs']) == allstaff