From: Chris Alfonso Date: Mon, 23 Apr 2012 20:37:09 +0000 (-0400) Subject: Assert the instance auto increment on the id worked X-Git-Tag: 2014.1~1935 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=ed92ae34715eead8c5a128f27d13af3599b16a29;p=openstack-build%2Fheat-build.git Assert the instance auto increment on the id worked --- diff --git a/heat/tests/test_resources.py b/heat/tests/test_resources.py index 8eb52347..b8c738c8 100644 --- a/heat/tests/test_resources.py +++ b/heat/tests/test_resources.py @@ -75,6 +75,9 @@ class ResourcesTest(unittest.TestCase): instance.itype_oflavor['256 MB Server'] = '256 MB Server' instance.create() + # this makes sure the auto increment worked on instance creation + assert(instance.id > 0) + # allows testing of the test directly, shown below if __name__ == '__main__': sys.argv.append(__file__)