          ]
          self.assertEqual(new_serializer.data, expected)
  
          serializer.save()
          self.assertEqual(serializer.data, data)
  
          # Ensure target 2 is update, and everything else is as expected
          queryset = ForeignKeyTarget.objects.all()
          serializer = ForeignKeyTargetSerializer(queryset, many=True, context={'request': request})
          expected = [
 
</s> remove         self.assertEqual(new_serializer.data, expected)
 </s> add         assert new_serializer.data == expected </s> remove         self.assertEqual(serializer.data, data)
        self.assertEqual(obj.name, 'target-3')
 </s> add         assert serializer.data == data
        assert obj.name == 'target-3' </s> remove         self.assertEqual(serializer.data, data)

 </s> add         assert serializer.data == data </s> remove         self.assertEqual(serializer.data, data)
        self.assertEqual(obj.name, 'target-4')
 </s> add         assert serializer.data == data
        assert obj.name == 'target-4' </s> remove         self.assertEqual(serializer.data, data)
 </s> add         assert serializer.data == data
        assert serializer.data == data
          ]
          self.assertEqual(new_serializer.data, expected)
  
          serializer.save()
        assert serializer.data == data
  
          # Ensure target 2 is update, and everything else is as expected
          queryset = ForeignKeyTarget.objects.all()
          serializer = ForeignKeyTargetSerializer(queryset, many=True, context={'request': request})
          expected = [
keep keep keep keep replace keep keep keep keep keep
 converted test asserts of hyperlin relations to pytest 
tests/test_relations_hyperlink.py