  
      def test_reverse_many_to_many_create(self):
          data = {'url': 'http://testserver/manytomanytarget/4/', 'name': 'target-4', 'sources': ['http://testserver/manytomanysource/1/', 'http://testserver/manytomanysource/3/']}
          serializer = ManyToManyTargetSerializer(data=data, context={'request': request})
          self.assertTrue(serializer.is_valid())
          obj = serializer.save()
          self.assertEqual(serializer.data, data)
          self.assertEqual(obj.name, 'target-4')
  
          # Ensure target 4 is added, and everything else is as expected
 
</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, expected)
 </s> add         assert serializer.data == expected </s> remove         self.assertTrue(serializer.is_valid())
 </s> add         assert serializer.is_valid() </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.assertTrue(serializer.is_valid())
 </s> add         assert serializer.is_valid()
        assert serializer.is_valid()
  
      def test_reverse_many_to_many_create(self):
          data = {'url': 'http://testserver/manytomanytarget/4/', 'name': 'target-4', 'sources': ['http://testserver/manytomanysource/1/', 'http://testserver/manytomanysource/3/']}
          serializer = ManyToManyTargetSerializer(data=data, context={'request': request})
        assert serializer.is_valid()
          obj = serializer.save()
          self.assertEqual(serializer.data, data)
          self.assertEqual(obj.name, 'target-4')
  
          # Ensure target 4 is added, and everything else is as expected
keep keep keep keep replace keep keep keep keep keep
 converted test asserts of hyperlin relations to pytest 
tests/test_relations_hyperlink.py