          expected = [
              {'url': 'http://testserver/foreignkeytarget/1/', 'name': 'target-1', 'sources': ['http://testserver/foreignkeysource/1/', 'http://testserver/foreignkeysource/2/', 'http://testserver/foreignkeysource/3/']},
              {'url': 'http://testserver/foreignkeytarget/2/', 'name': 'target-2', 'sources': []},
          ]
          self.assertEqual(new_serializer.data, expected)
  
          serializer.save()
          self.assertEqual(serializer.data, data)
  
          # Ensure target 2 is update, and everything else is as expected
 
</s> remove             self.assertEqual(serializer.data, expected)
 </s> add             assert serializer.data == expected </s> remove         self.assertEqual(serializer.data, data)
 </s> add         assert serializer.data == data </s> remove         self.assertEqual(serializer.data, expected)
 </s> add         assert serializer.data == expected </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()
        assert new_serializer.data == expected
          expected = [
              {'url': 'http://testserver/foreignkeytarget/1/', 'name': 'target-1', 'sources': ['http://testserver/foreignkeysource/1/', 'http://testserver/foreignkeysource/2/', 'http://testserver/foreignkeysource/3/']},
              {'url': 'http://testserver/foreignkeytarget/2/', 'name': 'target-2', 'sources': []},
          ]
        assert new_serializer.data == expected
  
          serializer.save()
          self.assertEqual(serializer.data, data)
  
          # Ensure target 2 is update, 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