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'))
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"))