mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
3d0f5aeca0
Refactors the provider class lookup and kwarg processing so that it can be reused for plan_output.
20 lines
450 B
Python
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)
|