def test_powerview_create_private_defaults_to_false(self):
'''
PowerViews are public by default, if private option isn't specified.
'''
sysadmin = Sysadmin()
create_dict = self._make_create_data_dict()
del create_dict['private']
powerview_result = toolkit.get_action('powerview_create')(
context={'user': sysadmin['name']},
data_dict=create_dict
)
nosetools.assert_false(powerview_result['private'])
评论列表
文章目录