From 458f0681a0dd8abc247fe042ff462dc35ee07bc5 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 22 Jan 2018 19:57:30 +0200 Subject: Fix: compare lists as sets --- yarns/900-implements.yarn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yarns/900-implements.yarn') diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn index b27b830..c6be689 100644 --- a/yarns/900-implements.yarn +++ b/yarns/900-implements.yarn @@ -159,10 +159,10 @@ along with this program. If not, see . http(vars, get, url + path, token=token) IMPLEMENTS THEN the list of builds is (.+) - expected = json.loads(get_next_match()) + expected = set(json.loads(get_next_match())) print('expected', expected) body = json.loads(vars['body']) print('body', body) - actual = [o['build_id'] for o in body['builds']] + actual = set(o['build_id'] for o in body['builds']) print('actual', actual) assertEqual(actual, expected) -- cgit v1.2.1