  class GenerateSchemaTests(TestCase):
      """Tests for management command generateschema."""
  
      def setUp(self):
          self.out = six.StringIO()
  
      @pytest.mark.skipif(six.PY2, reason='PyYAML unicode output is malformed on PY2.')
      def test_renders_default_schema_with_custom_title_url_and_description(self):
          expected_out = """info:
                              description: Sample description
 
</s> remove     @pytest.mark.skipif(six.PY2, reason='PyYAML unicode output is malformed on PY2.')
 </s> add  </s> remove         assert output is 123
 </s> add         assert output == 123 </s> remove         super(ManualSchema, self).__init__()
 </s> add         super().__init__() </s> remove         class MockResponse(object):
 </s> add         class MockResponse: </s> remove         class MockRequest(object):
 </s> add         class MockRequest:
        self.out = io.StringIO()
  class GenerateSchemaTests(TestCase):
      """Tests for management command generateschema."""
  
      def setUp(self):
        self.out = io.StringIO()
  
      @pytest.mark.skipif(six.PY2, reason='PyYAML unicode output is malformed on PY2.')
      def test_renders_default_schema_with_custom_title_url_and_description(self):
          expected_out = """info:
                              description: Sample description
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_generateschema.py