          data = {'url': 'http://testserver/nullableforeignkeysource/4/', 'name': 'source-4', 'target': None}
          serializer = NullableForeignKeySourceSerializer(data=data, context={'request': request})
          self.assertTrue(serializer.is_valid())
          obj = serializer.save()
          self.assertEqual(serializer.data, data)
          self.assertEqual(obj.name, 'source-4')
  
          # Ensure source 4 is created, and everything else is as expected
          queryset = NullableForeignKeySource.objects.all()
          serializer = NullableForeignKeySourceSerializer(queryset, many=True, context={'request': request})
          expected = [
 
</s> remove         self.assertEqual(serializer.data, expected_data)
        self.assertEqual(obj.name, 'source-4')
 </s> add         assert serializer.data == expected_data
        assert obj.name == 'source-4' </s> remove         self.assertTrue(serializer.is_valid())
 </s> add         assert serializer.is_valid() </s> remove         self.assertTrue(serializer.is_valid())
 </s> add         assert serializer.is_valid() </s> remove         self.assertEqual(serializer.data, data)
        self.assertEqual(obj.name, 'source-4')
 </s> add         assert serializer.data == data
        assert obj.name == 'source-4' </s> remove         self.assertEqual(serializer.data, data)
 </s> add         assert serializer.data == data
        assert serializer.data == data
        assert obj.name == 'source-4'
          data = {'url': 'http://testserver/nullableforeignkeysource/4/', 'name': 'source-4', 'target': None}
          serializer = NullableForeignKeySourceSerializer(data=data, context={'request': request})
          self.assertTrue(serializer.is_valid())
          obj = serializer.save()
        assert serializer.data == data
        assert obj.name == 'source-4'
        assert serializer.data == data
        assert obj.name == 'source-4'
  
          # Ensure source 4 is created, and everything else is as expected
          queryset = NullableForeignKeySource.objects.all()
          serializer = NullableForeignKeySourceSerializer(queryset, many=True, context={'request': request})
          expected = [
keep keep keep keep replace replace keep keep keep keep keep
 converted test asserts of hyperlin relations to pytest 
tests/test_relations_hyperlink.py