Skip to content

Commit 714e314

Browse files
committed
Fix tests in Python 2
1 parent 09dab48 commit 714e314

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

tests/agent_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import uuid
66

77
import consulate
8+
from consulate import utils
89

910
from . import base
1011

@@ -55,7 +56,7 @@ def test_metrics_forbidden(self):
5556

5657
def test_monitor(self):
5758
for line in self.consul.agent.monitor():
58-
self.assertIsInstance(line, str)
59+
self.assertTrue(utils.is_string(line))
5960
break
6061

6162
def test_monitor_forbidden(self):

tests/kv_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
import json
23
import unittest
34
try:

0 commit comments

Comments
 (0)