def test_analyze_sg():
template_path = here(
'resources/sample_kumo_viz/ELBStickinessSample.template')
with open(template_path, 'r') as tfile:
template = json.loads(tfile.read())
known_sg, open_sg = _analyze_sg(template['Resources'])
nose.tools.assert_in('InstanceSecurityGroup', known_sg)
nose.tools.assert_in('InstanceSecurityGroup', open_sg)
评论列表
文章目录