Files
github-octodns/tests/test_octodns_plan.py
T
Ross McFarland 3d0f5aeca0 Config-based plan_output
Refactors the provider class lookup and kwarg processing so that it can be
reused for plan_output.
2017-12-02 11:40:55 -08:00

20 lines
450 B
Python

#
#
#
from __future__ import absolute_import, division, print_function, \
unicode_literals
from unittest import TestCase
from octodns.provider.plan import PlanLogger
class TestPlanLogger(TestCase):
def test_invalid_level(self):
with self.assertRaises(Exception) as ctx:
PlanLogger('invalid', 'not-a-level')
self.assertEquals('Unsupported level: not-a-level',
ctx.exception.message)