

def testStatusCode(self):
    data = {
        'query': '*',
        'openTab': 'conn',
        'hits': self.result,
    }
    request = self.factory.get('/')
    self.assertEqual(render(request, 'home.html', data).status_code, 200)

dataset/ETHPy150Open grigorescu/Brownian/Brownian/view/tests.py JSONTests.testStatusCode/original