              {'url': 'http://testserver/nullableforeignkeysource/1/', 'name': 'source-1', 'target': None},
              {'url': 'http://testserver/nullableforeignkeysource/2/', 'name': 'source-2', 'target': 'http://testserver/foreignkeytarget/1/'},
              {'url': 'http://testserver/nullableforeignkeysource/3/', 'name': 'source-3', 'target': None},
          ]
          self.assertEqual(serializer.data, expected)
  
  
  @override_settings(ROOT_URLCONF='tests.test_relations_hyperlink')
  class HyperlinkedNullableOneToOneTests(TestCase):
      def setUp(self):
 
</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.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.assertEqual(serializer.data, expected)
 </s> add         assert serializer.data == expected
        assert serializer.data == expected
              {'url': 'http://testserver/nullableforeignkeysource/1/', 'name': 'source-1', 'target': None},
              {'url': 'http://testserver/nullableforeignkeysource/2/', 'name': 'source-2', 'target': 'http://testserver/foreignkeytarget/1/'},
              {'url': 'http://testserver/nullableforeignkeysource/3/', 'name': 'source-3', 'target': None},
          ]
        assert serializer.data == expected
  
  
  @override_settings(ROOT_URLCONF='tests.test_relations_hyperlink')
  class HyperlinkedNullableOneToOneTests(TestCase):
      def setUp(self):
keep keep keep keep replace keep keep keep keep keep
 converted test asserts of hyperlin relations to pytest 
tests/test_relations_hyperlink.py