Merge "Bugfix: Failed executing command: 'free -s 1 -c 10'"
[yardstick.git] / tests / unit / orchestrator / test_heat.py
1 #!/usr/bin/env python
2
3 ##############################################################################
4 # Copyright (c) 2017 Intel Corporation
5 #
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 ##############################################################################
11
12 # Unittest for yardstick.benchmark.orchestrator.heat
13
14 import unittest
15 import uuid
16
17 from yardstick.orchestrator import heat
18
19
20 class HeatContextTestCase(unittest.TestCase):
21
22     def test_get_short_key_uuid(self):
23         u = uuid.uuid4()
24         k = heat.get_short_key_uuid(u)
25         self.assertEqual(heat.HEAT_KEY_UUID_LENGTH, len(k))
26         self.assertIn(k, str(u))