old_contents: import os, unittest
  import labsys
  from labsys.app import create_app, db
  from labsys.auth.models import Role
  import labsys.inventory.models as models
  
  
  class ShowCatalogTestCase(unittest.TestCase):
  
      def setUp(self):
          self.app = create_app('testing')
          self.app_context = self.app.app_context()
          self.app_context.push()
          db.create_all()
          Role.insert_roles()
          self.client = self.app.test_client(use_cookies=True)
  
      def tearDown(self):
          db.session.remove()
          db.drop_all()
          self.app_context.pop()
  
      def test_dummy(self):
          self.assertTrue(True)
new_contents: import os, unittest
  from flask import url_for
  
  from labsys.app import create_app, db
  from labsys.auth.models import Role
  import labsys.inventory.models as models
  
  
  class TestInventoryViews(unittest.TestCase):
  
      def setUp(self):
          self.app = create_app('testing')
          self.app_context = self.app.app_context()
          self.app_context.push()
          db.create_all()
          Role.insert_roles()
          self.client = self.app.test_client(use_cookies=True)
  
      def tearDown(self):
          db.session.remove()
          db.drop_all()
          self.app_context.pop()
  
      def test_dummy(self):
          self.assertTrue(True)
  
      def test_home_page(self):
          response = self.client.get('/')
          self.assertEqual(response.status_code, 200)
          self.assertIn('Bem-vindo!', response.get_data(as_text=True))
  
subject: test home page