def test_subtype_based_pygments_lexer_match(self, httpbin):
        """Test that media subtype is used if type/subtype doesn't
        match any lexer.

        """
        env = MockEnvironment(colors=256)
        r = http('--print=B', '--pretty=all', httpbin + '/post',
                 'Content-Type:text/foo+json', 'a=b', env=env)
        assert COLOR in r
Test that media subtype is used if type/subtype doesn't
        match any lexer.

        
tests/test_output.py