old_contents: """Test HTTP capabilities of the core's frontend."""
  
  from ppp_core.tests import PPPTestCase
  from ppp_core import app
  
  class HttpTest(PPPTestCase(app)):
      def testPostOnly(self):
          self.assertEqual(self.app.get('/', status='*').status_int, 405)
          self.assertEqual(self.app.put('/', status='*').status_int, 405)
      def testRootOnly(self):
          self.assertEqual(self.app.post_json('/foo', {}, status='*').status_int, 404)
      def testNotJson(self):
          self.assertEqual(self.app.post('/', 'foobar', status='*').status_int, 400)
      def testWorking(self):
          q = {'language': 'en', 'tree': {'type': 'triple',
               'subject': {'type': 'resource', 'value': 'foo'},
               'predicate': {'type': 'resource', 'value': 'bar'},
               'object': {'type': 'resource', 'value': 'baz'},
              }}
          self.assertResponse(q, [])
      def testNoTree(self):
          q = {'language': 'en'}
          self.assertStatusInt(q, 400)
  
new_contents: """Test HTTP capabilities of the core's frontend."""
  
  from ppp_core.tests import PPPTestCase
  from ppp_core import app
  
  class HttpTest(PPPTestCase(app)):
      def testPostOnly(self):
          self.assertEqual(self.app.get('/', status='*').status_int, 405)
          self.assertEqual(self.app.put('/', status='*').status_int, 405)
      def testNotRoot(self):
          self.assertEqual(self.app.post_json('/foo', {}, status='*').status_int, 400)
      def testNotJson(self):
          self.assertEqual(self.app.post('/', 'foobar', status='*').status_int, 400)
      def testWorking(self):
          q = {'language': 'en', 'tree': {'type': 'triple',
               'subject': {'type': 'resource', 'value': 'foo'},
               'predicate': {'type': 'resource', 'value': 'bar'},
               'object': {'type': 'resource', 'value': 'baz'},
              }}
          self.assertResponse(q, [])
      def testNoTree(self):
          q = {'language': 'en'}
          self.assertStatusInt(q, 400)
  
subject: Fix tests with respect to 70bf0b3af7821773aa9bc964fef96c7323204bd1.