def setUp(self):
    self.factory = APIRequestFactory()
    self.users = [User.objects.create(first_name='Riri', last_name='Duck', email='example@example.com', password='dummy'), User.objects.create(first_name='Fifi', last_name='Duck', email='example@example.com', password='dummy'), User.objects.create(first_name='Loulou', last_name='Duck', email='example@example.com', password='dummy')]
def setUp(self):
    self.factory = APIRequestFactory()
    self.users = [User.objects.create(first_name='Riri', last_name='Duck', email='example@example.com', password='dummy'), User.objects.create(first_name='Fifi', last_name='Duck', email='example@example.com', password='dummy'), User.objects.create(first_name='Loulou', last_name='Duck', email='example@example.com', password='dummy')]