old_contents: import unittest
  
  from app import serve
  
  
  class PageCase(unittest.TestCase):
      def setUp(self):
          serve.app.config['TESTING'] = True
          self.app = serve.app.test_client()
  
      def test_index_load(self):
          self.page_test('/', b'')
  
      def test_robots_load(self):
          self.page_test('/robots.txt', b'')
  
      def test_sitemap_load(self):
          self.page_test('/sitemap.xml', b'')
  
      def test_not_found(self):
          response = self.app.get('/asdf')
          self.assertEqual(response.status_code, 404)
          self.assertIn(b'Not Found', response.get_data())
  
      def page_test(self, path, string):
          response = self.app.get(path)
          self.assertEqual(response.status_code, 200)
          self.assertIn(string, response.get_data())
  
new_contents: import unittest
  
  from varsnap import TestVarSnap  # noqa: F401
  
  from app import serve
  
  
  class PageCase(unittest.TestCase):
      def setUp(self):
          serve.app.config['TESTING'] = True
          self.app = serve.app.test_client()
  
      def test_index_load(self):
          self.page_test('/', b'')
  
      def test_robots_load(self):
          self.page_test('/robots.txt', b'')
  
      def test_sitemap_load(self):
          self.page_test('/sitemap.xml', b'')
  
      def test_not_found(self):
          response = self.app.get('/asdf')
          self.assertEqual(response.status_code, 404)
          self.assertIn(b'Not Found', response.get_data())
  
      def page_test(self, path, string):
          response = self.app.get(path)
          self.assertEqual(response.status_code, 200)
          self.assertIn(string, response.get_data())
  
subject: Add TestVarSnap as a TestCase