Exemple #1
0
 def invalid_subcollection_paths_result_in_KeyError(self):
     # Straight up invalid
     assert_raises(KeyError, Collection('meh').configuration, 'nope')
     # Exists but wrong level
     inner = Collection('inner')
     inner.configure({'foo': 'bar'})
     assert_raises(KeyError,
         Collection('outer', inner).configuration, 'foo')
Exemple #2
0
 def invalid_subcollection_paths_result_in_KeyError(self):
     # Straight up invalid
     assert_raises(KeyError,
                   Collection('meh').configuration, 'nope.task')
     # Exists but wrong level (should be 'root.task', not just
     # 'task')
     inner = Collection('inner', self.task)
     assert_raises(KeyError,
                   Collection('root', inner).configuration, 'task')
Exemple #3
0
 def invalid_subcollection_paths_result_in_KeyError(self):
     # Straight up invalid
     assert_raises(KeyError,
         Collection('meh').configuration,
         'nope.task'
     )
     # Exists but wrong level (should be 'root.task', not just
     # 'task')
     inner = Collection('inner', self.task)
     assert_raises(KeyError,
         Collection('root', inner).configuration, 'task')