Add type deprecation support.
This commit is contained in:
parent
ea291efbf6
commit
4949af894e
6 changed files with 58 additions and 0 deletions
|
|
@ -123,6 +123,16 @@ class TypeTestCase(test.CdistTestCase):
|
|||
cdist_type = core.CdistType(base_path, '__not_nonparallel')
|
||||
self.assertFalse(cdist_type.is_nonparallel)
|
||||
|
||||
def test_deprecated(self):
|
||||
base_path = fixtures
|
||||
cdist_type = core.CdistType(base_path, '__deprecated')
|
||||
self.assertIsNotNone(cdist_type.deprecated)
|
||||
|
||||
def test_not_deprecated(self):
|
||||
base_path = fixtures
|
||||
cdist_type = core.CdistType(base_path, '__not_deprecated')
|
||||
self.assertIsNone(cdist_type.deprecated)
|
||||
|
||||
def test_install_is_install(self):
|
||||
base_path = fixtures
|
||||
cdist_type = core.CdistType(base_path, '__install')
|
||||
|
|
|
|||
0
cdist/test/cdist_type/fixtures/__deprecated/deprecated
Normal file
0
cdist/test/cdist_type/fixtures/__deprecated/deprecated
Normal file
Loading…
Add table
Add a link
Reference in a new issue