From ed92ae34715eead8c5a128f27d13af3599b16a29 Mon Sep 17 00:00:00 2001 From: Chris Alfonso Date: Mon, 23 Apr 2012 16:37:09 -0400 Subject: [PATCH] Assert the instance auto increment on the id worked --- heat/tests/test_resources.py | 3 +++ 1 file changed, 3 insertions(+) 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__) -- 2.45.2