summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2012-12-14 20:43:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2012-12-14 20:43:29 +0900
commitdaf797804b8f439d665e48996fe9cf1d2d632635 (patch)
treec2a16dd0097b2a6ee96396f7e5d144b3598a56b3 /test
parent23f2a7fc7e93cb49fec2c067ab2e15d4ec90636a (diff)
downloadansible-daf797804b8f439d665e48996fe9cf1d2d632635.tar.gz
Allows whitespaces around assignment operators
when defining group variables
Diffstat (limited to 'test')
-rw-r--r--test/TestInventory.py4
-rw-r--r--test/complex_hosts6
2 files changed, 9 insertions, 1 deletions
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