소스 검색

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,
             "Security group {0} should have been deleted but still exists."
             .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):
         """Test for proper creation of a security group."""