From daf797804b8f439d665e48996fe9cf1d2d632635 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 14 Dec 2012 20:43:29 +0900 Subject: Allows whitespaces around assignment operators when defining group variables --- test/TestInventory.py | 4 +++- test/complex_hosts | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/TestInventory.py b/test/TestInventory.py index a089aa1a74..2a0bd8d6f6 100644 --- a/test/TestInventory.py +++ b/test/TestInventory.py @@ -142,7 +142,9 @@ class TestInventory(unittest.TestCase): print vars expected = dict( - a='1', b='2', c='3', d='10002', rga='1', rgb='2', rgc='3', + a='1', b='2', c='3', d='10002', e='10003', f='10004 != 10005', + g=' g ', h=' h ', i="' i \"", j='" j', + rga='1', rgb='2', rgc='3', inventory_hostname='rtp_a', inventory_hostname_short='rtp_a', group_names=[ 'eastcoast', 'nc', 'redundantgroup', 'redundantgroup2', 'redundantgroup3', 'rtp', 'us' ] ) diff --git a/test/complex_hosts b/test/complex_hosts index 8c2c726f3b..0c568161c3 100644 --- a/test/complex_hosts +++ b/test/complex_hosts @@ -34,6 +34,12 @@ rgc=3 b=10000 c=10001 d=10002 +e = 10003 + f = 10004 != 10005 + g = " g " + h = ' h ' + i = ' i " + j = " j [rtp] rtp_a -- cgit v1.2.3