          self.assertEqual(serializer.is_valid(), False)
  
          expected_errors = {'non_field_errors': ['Expected a list of items but got type "dict".']}
  
          self.assertEqual(serializer.errors, expected_errors)
 
</s> remove         self.assertEqual(serializer.is_valid(), False)
 </s> add         assert serializer.is_valid() is False </s> remove         self.assertEqual(serializer.errors, expected_errors)
 </s> add         assert serializer.errors == expected_errors
        assert serializer.errors == expected_errors
          self.assertEqual(serializer.is_valid(), False)
  
          expected_errors = {'non_field_errors': ['Expected a list of items but got type "dict".']}
  
        assert serializer.errors == expected_errors
keep keep keep keep replace
 converted serializer bulk update test asserts to pytest (#4805) 
tests/test_serializer_bulk_update.py