示例#1
0
 def test_validate_ec2_id(self):
     self.assertFalse(validator.validate_ec2_id('foobar'))
     self.assertFalse(validator.validate_ec2_id(''))
     self.assertFalse(validator.validate_ec2_id(1234))
     self.assertTrue(validator.validate_ec2_id('i-284f3a41'))
示例#2
0
 def test_validate_ec2_id(self):
     self.assertFalse(validator.validate_ec2_id('foobar'))
     self.assertFalse(validator.validate_ec2_id(''))
     self.assertFalse(validator.validate_ec2_id(1234))
     self.assertTrue(validator.validate_ec2_id('i-284f3a41'))
示例#3
0
 def test_validate_ec2_id(self):
     self.assertFalse(validator.validate_ec2_id("foobar"))
     self.assertFalse(validator.validate_ec2_id(""))
     self.assertFalse(validator.validate_ec2_id(1234))
     self.assertTrue(validator.validate_ec2_id("i-284f3a41"))