def METHOD_NAME(self):
    response = self.client.get('/mygroup/myproject/build/1/tests/?environment=myenv')
    content = str(response.content)
    self.assertEqual(200, response.status_code)
    self.assertTrue('test1' in content)
    self.assertTrue('test2' in content)
    self.assertTrue('myenv' in content)
    self.assertTrue('myenv2' not in content)