def test_is_server_unblocked(self):
response = self.client.post('/django_dev_protector/', json.dumps({
'key': settings.SECRET_KEY,
'status': False
}), content_type='application/json')
response = self.client.get('/')
self.assertEqual(get_status(), 'False')
self.assertContains(response, 'works!')
评论列表
文章目录