-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path__init__.py
More file actions
37 lines (29 loc) · 1.12 KB
/
Copy path__init__.py
File metadata and controls
37 lines (29 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
#
# PowerDNS web api python client and interface (python-powerdns)
#
# Copyright (C) 2018 Denis Pompilio (jawa) <denis.pompilio@gmail.com>
#
# This file is part of python-powerdns
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the MIT License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# MIT License for more details.
#
# You should have received a copy of the MIT License along with this
# program; if not, see <https://opensource.org/licenses/MIT>.
import powerdns
from logging import Logger
from unittest import TestCase
PDNS_KEY = "MySupErS3cureK3y"
PDNS_API = "http://172.17.0.2:8081/api/v1"
API_CLIENT = powerdns.PDNSApiClient(api_endpoint=PDNS_API,
api_key=PDNS_KEY,
verify=False)
class TestLogger(TestCase):
def test_logger_creation(self):
self.assertIsInstance(powerdns.basic_logger("test", 2, 1), Logger)