forked from ungleich-public/cdist
test for illegal object_id
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
6067646ffa
commit
9640c3a098
1 changed files with 8 additions and 0 deletions
|
@ -52,6 +52,14 @@ class ObjectClassTestCase(unittest.TestCase):
|
|||
self.assertEqual(objects, objects_expected)
|
||||
|
||||
|
||||
class ObjectIdTestCase(unittest.TestCase):
|
||||
def test_illegal_object_id(self):
|
||||
cdist_type = core.Type(type_base_path, '__third')
|
||||
illegal_object_id = '/object_id/may/not/start/with/slash'
|
||||
with self.assertRaises(core.IllegalObjectIdError):
|
||||
core.Object(cdist_type, object_base_path, illegal_object_id)
|
||||
|
||||
|
||||
class ObjectTestCase(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in a new issue