ソースを参照

More test coverage for SG

Enis Afgan 10 年 前
コミット
62cd7a66f6
1 ファイル変更5 行追加0 行削除
  1. 5 0
      test/test_provider_security_service.py

+ 5 - 0
test/test_provider_security_service.py

@@ -86,6 +86,11 @@ class ProviderSecurityServiceTestCase(ProviderTestBase):
             len(found_sg) == 0,
             len(found_sg) == 0,
             "Security group {0} should have been deleted but still exists."
             "Security group {0} should have been deleted but still exists."
             .format(name))
             .format(name))
+        no_sg = self.provider.security.security_groups.get(
+            group_ids=['bogus_sg'])
+        self.assertTrue(
+            len(no_sg) == 0,
+            "Found a bogus security group?!?".format(no_sg))
 
 
     def test_security_group(self):
     def test_security_group(self):
         """Test for proper creation of a security group."""
         """Test for proper creation of a security group."""