  
  
  def test_compat():
      assert hasattr(importable, 'compat')
 
</s> remove def test_imported():
    # ensure that the __init__ hasn't been mucked with
 </s> add def test_compat(): </s> remove     # ensure that apps can freely import rest_framework.compat
 </s> add     # ensure the test app hasn't been removed from the test suite </s> remove             message = self.error_messages['min_length'].format(min_length=self.min_length)
 </s> add             message = lazy(self.error_messages['min_length'].format, str)(min_length=self.min_length) </s> remove             message = self.error_messages['max_length'].format(max_length=self.max_length)
 </s> add             message = lazy(self.error_messages['max_length'].format, str)(max_length=self.max_length)
def test_serializer_fields_initialization():
    assert hasattr(importable, 'ExampleSerializer')

    serializer = importable.ExampleSerializer()
    assert 'charfield' in serializer.fields
    assert 'integerfield' in serializer.fields
    assert 'floatfield' in serializer.fields
    assert 'decimalfield' in serializer.fields
    assert 'durationfield' in serializer.fields
    assert 'listfield' in serializer.fields
  
  
  def test_compat():
      assert hasattr(importable, 'compat')
def test_serializer_fields_initialization():
    assert hasattr(importable, 'ExampleSerializer')

    serializer = importable.ExampleSerializer()
    assert 'charfield' in serializer.fields
    assert 'integerfield' in serializer.fields
    assert 'floatfield' in serializer.fields
    assert 'decimalfield' in serializer.fields
    assert 'durationfield' in serializer.fields
    assert 'listfield' in serializer.fields
keep keep keep add
 Fix lazy translation of ListField errors (#6708)

* Test init for fields w/ lazy translations
* Fix lazy translations for ListField 
tests/importable/test_installed.py