
from surveil.tests.api import functionalTest


class TestRootController(functionalTest.FunctionalTest):

    def test_get(self):
        response = self.app.get('/v1/hello')
        assert response.body == b"Hello World!"
        assert response.status_int == 200


from surveil.tests.api import functionalTest


class TestRootController(functionalTest.FunctionalTest):

    def test_get(self):
        response = self.app.get('/v1/hello')
        self.assertEqual(response.body, b"Hello World!")
        assert response.status_int == 200

Use self.assertEqual instead of assert
Use self.assertEqual instead of assert

Change-Id: Icae26d907eec2c4ab9f430c69491a96bd549c45a

  
  from surveil.tests.api import functionalTest
  
  
  class TestRootController(functionalTest.FunctionalTest):
  
      def test_get(self):
          response = self.app.get('/v1/hello')
-         assert response.body == b"Hello World!"
+         self.assertEqual(response.body, b"Hello World!")
          assert response.status_int == 200
  
Use self.assertEqual instead of assert
## Code Before:

from surveil.tests.api import functionalTest


class TestRootController(functionalTest.FunctionalTest):

    def test_get(self):
        response = self.app.get('/v1/hello')
        assert response.body == b"Hello World!"
        assert response.status_int == 200

## Instruction:
Use self.assertEqual instead of assert
## Code After:

from surveil.tests.api import functionalTest


class TestRootController(functionalTest.FunctionalTest):

    def test_get(self):
        response = self.app.get('/v1/hello')
        self.assertEqual(response.body, b"Hello World!")
        assert response.status_int == 200
