From 4d1be88c0e3836fefb4b278cbdc314f4d17bf494 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Fri, 13 May 2016 14:13:59 +0200 Subject: [PATCH] tests: update data_source tests (#10920) --- tests/test_datasource.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_datasource.py b/tests/test_datasource.py index d0d1b5c..0e837a4 100644 --- a/tests/test_datasource.py +++ b/tests/test_datasource.py @@ -256,8 +256,9 @@ def test_data_source_unicode(): assert data_source2.data_source == data_source.data_source with mock.patch('wcs.data_sources.urllib2') as urllib2: urllib2.urlopen.return_value.read.return_value = \ - '{"data": [{"id": 1, "text": "uné"}, {"id": 2, "text": "deux"}]}' + '{"data": [{"id": 0, "text": "zéro"}, {"id": 1, "text": "uné"}, {"id": 2, "text": "deux"}]}' assert data_sources.get_items({'type': 'foobar'}) == [ + ('0', 'zéro', '0'), ('1', 'uné', '1'), ('2', 'deux', '2'), ] -- 2.8.1