コード例 #1
0
 def test_status(self):
     for s in ['Active', 'Inactive']:
         status(s)
     for s in ['active', 'idle']:
         with self.assertRaises(ValueError):
             status(s)
コード例 #2
0
ファイル: test_validators.py プロジェクト: bpholt/troposphere
 def test_status(self):
     for s in ['Active', 'Inactive']:
         status(s)
     for s in ['active', 'idle']:
         with self.assertRaises(ValueError):
             status(s)
コード例 #3
0
 def test_status(self):
     for s in ["Active", "Inactive"]:
         status(s)
     for s in ["active", "idle"]:
         with self.assertRaises(ValueError):
             status(s)
コード例 #4
0
 def test_status(self):
     for s in ["Active", "Inactive"]:
         status(s)
     for s in ["active", "idle"]:
         with self.assertRaises(ValueError):
             status(s)