commit:     ad249e2fb0bf3a4ba3265e2f7f4d3cf3c34ab41b
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 30 04:56:47 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Sun Nov 30 04:56:47 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=ad249e2f

external.py: Improves CLIArgs testing for a["overlays"]

---
 layman/tests/external.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layman/tests/external.py b/layman/tests/external.py
index 45b4d39..70d5b62 100755
--- a/layman/tests/external.py
+++ b/layman/tests/external.py
@@ -239,8 +239,8 @@ class CLIArgs(unittest.TestCase):
 
         # Test the passed in cli opts on the ArgsParser class:
         a = ArgsParser()
-        test_url = '\n\nhttps://api.gentoo.org/overlays/repositories.xml'
-        self.assertEqual(a['overlays'], test_url)
+        test_url = 'https://api.gentoo.org/overlays/repositories.xml'
+        self.assertTrue(test_url in a['overlays'].split('\n'))
         test_keys = ['auto_sync', 'bzr_addopts', 'bzr_command', 'bzr_postsync',
                      'bzr_syncopts', 'cache', 'clean_tar', 'conf_module',
                      'conf_type', 'config', 'configdir', 'custom_news_pkg',

Reply via email to