3 ##############################################################################
4 # Copyright (c) 2017 Intel Corporation
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # Unittest for yardstick.benchmark.orchestrator.heat
17 from yardstick.orchestrator import heat
20 class HeatContextTestCase(unittest.TestCase):
22 def test_get_short_key_uuid(self):
24 k = heat.get_short_key_uuid(u)
25 self.assertEqual(heat.HEAT_KEY_UUID_LENGTH, len(k))
26 self.assertIn(k, str(u))