"""
    Test Status Endpoint

    GET  /status
    HEAD /status

"""

from biothings.tests.web import BiothingsTestCase
from setup import setup_es  # pylint: disable=unused-import


class TestStatus(BiothingsTestCase):

    def test_01_get(self):

        res = self.request('/status').text
        assert res == 'OK'

    def test_02_head(self):

        self.request('/status', method='HEAD')

@@ -232,32 +232,513 @@
 t_01_get(self):%0A
+        %22%22%22%0A        %7B%0A            %22code%22: 200,%0A            %22status%22: %22yellow%22,%0A            %22payload%22: %7B%0A                %22id%22: %221017%22,%0A                %22index%22: %22bts_test%22,%0A                %22doc_type%22: %22_all%22%0A            %7D,%0A            %22response%22: %7B%0A                %22_index%22: %22bts_test%22,%0A                %22_type%22: %22gene%22,%0A                %22_id%22: %221017%22,%0A                %22_version%22: 1,%0A                %22found%22: true,%0A                %22_source%22: %7B ... %7D%0A            %7D%0A        %7D%0A        %22%22%22
 %0A        res = s
@@ -764,12 +764,14 @@
 s').
-text
+json()
 %0A   
@@ -789,16 +789,63 @@
  res
- == 'OK'
+%5B'code'%5D == 200%0A        assert res%5B'response'%5D%5B'found'%5D
 %0A%0A  

Update test case for status handler accordingly