reformat the event time to return unicode string

Change-Id: I486f92e3b5a2801fb1ae9a981edb5be1771c8cbd
This commit is contained in:
Eyal 2017-03-18 20:17:52 +02:00
parent d5cd8a991a
commit 2e43bf4de6
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import six
import time
from datetime import datetime
@ -67,7 +68,7 @@ class TestEvents(base.BaseTestCase):
self.assertEqual(1, len(api_alarms), 'Expected host down alarm')
alarm = api_alarms[0]
event_time_tz = event_time.strftime("%Y-%m-%d %H:%M:%SZ")
event_time_tz = six.u(event_time.strftime("%Y-%m-%d %H:%M:%SZ"))
self._wait_for_status(2,
self._check_alarm,
alarm=alarm,