import unittest


class ViewTests(unittest.TestCase):
    def setUp(self):
        from pyramid import testing
        self.config = testing.setUp()

    def tearDown(self):
        from pyramid import testing
        testing.tearDown()

    def test_my_view(self):
        from pyramid import testing
        from .views import my_view
        request = testing.DummyRequest()
        info = my_view(request)
        self.assertEqual(info['project'], 'foo')

import unittest


class ViewTests(unittest.TestCase):
    def setUp(self):
        from pyramid import testing
        self.config = testing.setUp()

    def tearDown(self):
        from pyramid import testing
        testing.tearDown()

    def test_home_page(self):
        from pyramid import testing
        from .views import home_page
        request = testing.DummyRequest()
        info = home_page(request)
        self.assertEqual(info, {})

Fix test broken in rename.
Fix test broken in rename.

  import unittest
  
  
  class ViewTests(unittest.TestCase):
      def setUp(self):
          from pyramid import testing
          self.config = testing.setUp()
  
      def tearDown(self):
          from pyramid import testing
          testing.tearDown()
  
-     def test_my_view(self):
+     def test_home_page(self):
          from pyramid import testing
-         from .views import my_view
+         from .views import home_page
          request = testing.DummyRequest()
-         info = my_view(request)
+         info = home_page(request)
-         self.assertEqual(info['project'], 'foo')
+         self.assertEqual(info, {})
  
Fix test broken in rename.
## Code Before:
import unittest


class ViewTests(unittest.TestCase):
    def setUp(self):
        from pyramid import testing
        self.config = testing.setUp()

    def tearDown(self):
        from pyramid import testing
        testing.tearDown()

    def test_my_view(self):
        from pyramid import testing
        from .views import my_view
        request = testing.DummyRequest()
        info = my_view(request)
        self.assertEqual(info['project'], 'foo')

## Instruction:
Fix test broken in rename.
## Code After:
import unittest


class ViewTests(unittest.TestCase):
    def setUp(self):
        from pyramid import testing
        self.config = testing.setUp()

    def tearDown(self):
        from pyramid import testing
        testing.tearDown()

    def test_home_page(self):
        from pyramid import testing
        from .views import home_page
        request = testing.DummyRequest()
        info = home_page(request)
        self.assertEqual(info, {})
