
from yithlibraryserver import testing


class ViewTests(testing.TestCase):

    def test_home(self):
        res = self.testapp.get('/')
        self.assertEqual(res.status, '200 OK')


from yithlibraryserver import testing


class ViewTests(testing.TestCase):

    def test_home(self):
        res = self.testapp.get('/')
        self.assertEqual(res.status, '200 OK')

    def test_tos(self):
        res = self.testapp.get('/tos')
        self.assertEqual(res.status, '200 OK')

Test the new tos view
Test the new tos view

  
  from yithlibraryserver import testing
  
  
  class ViewTests(testing.TestCase):
  
      def test_home(self):
          res = self.testapp.get('/')
          self.assertEqual(res.status, '200 OK')
  
+     def test_tos(self):
+         res = self.testapp.get('/tos')
+         self.assertEqual(res.status, '200 OK')
+ 
Test the new tos view
## Code Before:

from yithlibraryserver import testing


class ViewTests(testing.TestCase):

    def test_home(self):
        res = self.testapp.get('/')
        self.assertEqual(res.status, '200 OK')

## Instruction:
Test the new tos view
## Code After:

from yithlibraryserver import testing


class ViewTests(testing.TestCase):

    def test_home(self):
        res = self.testapp.get('/')
        self.assertEqual(res.status, '200 OK')

    def test_tos(self):
        res = self.testapp.get('/tos')
        self.assertEqual(res.status, '200 OK')
