Skip to content

Commit

Permalink
Fix tests in Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
gmr committed Feb 27, 2018
1 parent 09dab48 commit 714e314
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/agent_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import uuid

import consulate
from consulate import utils

from . import base

Expand Down Expand Up @@ -55,7 +56,7 @@ def test_metrics_forbidden(self):

def test_monitor(self):
for line in self.consul.agent.monitor():
self.assertIsInstance(line, str)
self.assertTrue(utils.is_string(line))
break

def test_monitor_forbidden(self):
Expand Down
1 change: 1 addition & 0 deletions tests/kv_tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import json
import unittest
try:
Expand Down

0 comments on commit 714e314

Please sign in to comment.