| OLD | NEW |
| 1 # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ | 1 # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ |
| 2 # Copyright (c) 2009, Eucalyptus Systems, Inc. | 2 # Copyright (c) 2009, Eucalyptus Systems, Inc. |
| 3 # All rights reserved. | 3 # All rights reserved. |
| 4 # | 4 # |
| 5 # Permission is hereby granted, free of charge, to any person obtaining a | 5 # Permission is hereby granted, free of charge, to any person obtaining a |
| 6 # copy of this software and associated documentation files (the | 6 # copy of this software and associated documentation files (the |
| 7 # "Software"), to deal in the Software without restriction, including | 7 # "Software"), to deal in the Software without restriction, including |
| 8 # without limitation the rights to use, copy, modify, merge, publish, dis- | 8 # without limitation the rights to use, copy, modify, merge, publish, dis- |
| 9 # tribute, sublicense, and/or sell copies of the Software, and to permit | 9 # tribute, sublicense, and/or sell copies of the Software, and to permit |
| 10 # persons to whom the Software is furnished to do so, subject to the fol- | 10 # persons to whom the Software is furnished to do so, subject to the fol- |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 # short test around Paid AMI capability | 162 # short test around Paid AMI capability |
| 163 demo_paid_ami_id = 'ami-bd9d78d4' | 163 demo_paid_ami_id = 'ami-bd9d78d4' |
| 164 demo_paid_ami_product_code = 'A79EC0DB' | 164 demo_paid_ami_product_code = 'A79EC0DB' |
| 165 l = c.get_all_images([demo_paid_ami_id]) | 165 l = c.get_all_images([demo_paid_ami_id]) |
| 166 assert len(l) == 1 | 166 assert len(l) == 1 |
| 167 assert len(l[0].product_codes) == 1 | 167 assert len(l[0].product_codes) == 1 |
| 168 assert l[0].product_codes[0] == demo_paid_ami_product_code | 168 assert l[0].product_codes[0] == demo_paid_ami_product_code |
| 169 | 169 |
| 170 print '--- tests completed ---' | 170 print '--- tests completed ---' |
| OLD | NEW |