diff --git a/qiita_client/tests/test_plugin.py b/qiita_client/tests/test_plugin.py index 01765f5..ed07c47 100644 --- a/qiita_client/tests/test_plugin.py +++ b/qiita_client/tests/test_plugin.py @@ -220,7 +220,10 @@ def func(qclient, job_id, job_params, working_dir): obs = self.qclient.get('/qiita_db/plugins/NewPlugin/0.0.1/') self.assertEqual(obs['name'], 'NewPlugin') self.assertEqual(obs['version'], '0.0.1') - self.assertItemsEqual(obs['commands'], ['NewCmd', 'NewCmdAnalysis']) + # I can't use assertItemsEqual because it is not available in py3 + # and I can't user assertCountEqual because it is not avaialable in py2 + self.assertEqual(sorted(obs['commands']), + sorted(['NewCmd', 'NewCmdAnalysis'])) # Create a new job data = {'command': dumps(['NewPlugin', '0.0.1', 'NewCmd']),