Unittests: refactor AWS::EC2::SecurityGroup tests

Refactor mocks for rule creation into separate helper methods.

Change-Id: Ia32639147f12e2a3026b2d8c3efb499d8cea6765
Refactor AWS::EC2::SecurityGroup resource

Refactor rules create/delete out from group create/delete as separate
methods.

Change-Id: I4bb0f47abe629433fa6ca0b76fa579aec715530a
Move TestInstanceGroup to test_instance_group.py

Change-Id: Ib3bbadf3a868c6c82e30c63750a6ec76f873fc63
part of blueprint decouple-nested
Unit test autoscaling._calculate_new_capacity

This is so we can reduce the complexity in test_autoscaling.py

Change-Id: I96050295f48109bd370168f0a5c66e93e506da3e
part of blueprint decouple-nested
Merge "Unittests: refactor AWS::EC2::SecurityGroup tests"
Merge "Refactor AWS::EC2::SecurityGroup resource"
Merge "Move TestInstanceGroup to test_instance_group.py"
Merge "Unit test autoscaling._calculate_new_capacity"