Пример #1
0
    def test_check_good_domain(self):
        """Test checking a good domain

        """

        with app.test_request_context():
            response = self.test_client.get('/check/example.com')
        self.assertEqual(response.status_code, 200, response.data)
Пример #2
0
    def test_main(self):
        """Test the route

        """
        with app.test_request_context():
            response = self.test_client.get(url_for('main'))

        self.assertEqual(response.status_code, 200, response.data)