]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Assert the instance auto increment on the id worked
authorChris Alfonso <calfonso@redhat.com>
Mon, 23 Apr 2012 20:37:09 +0000 (16:37 -0400)
committerChris Alfonso <calfonso@redhat.com>
Mon, 23 Apr 2012 20:37:09 +0000 (16:37 -0400)
heat/tests/test_resources.py

index 8eb52347d62f4d63c8646d4148cb928f1895f591..b8c738c83f36df92c9327d4d368db1a8a88b6f5f 100644 (file)
@@ -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__)