implement test for create_key_pair

This commit is contained in:
Konstantinos Koukopoulos 2014-02-24 13:03:26 +02:00
commit ddfe478479
4 changed files with 47 additions and 9 deletions

View file

@ -14,4 +14,4 @@ def test_key_pairs_empty():
def test_key_pairs_create():
conn = boto.connect_ec2('the_key', 'the_secret')
kp = conn.create_key_pair('foo')
assert kp.material.startswith('-----BEGIN RSA PRIVATE KEY-----')
assert kp.material.startswith('---- BEGIN RSA PRIVATE KEY ----')