Permalink
Browse files

Fix test not expecting node name

  • Loading branch information...
tobami committed Mar 14, 2013
1 parent ddba3ee commit 84dc273f5b7df941a274fb4cdf51d0adb1ac862c
Showing with 3 additions and 2 deletions.
  1. +3 −2 tests/test_lib.py
View
@@ -135,8 +135,9 @@ class TestLib(BaseTest):
def test_get_node(self):
"""Should get data for a given node, empty when it doesn't exist"""
# Unexisting node
- expected = {'run_list': []}
- self.assertEqual(lib.get_node('Idon"texist'), expected)
+ name = 'Idon"texist'
+ expected = {'name': name, 'run_list': []}
+ self.assertEqual(lib.get_node(name), expected)
# Existing node
expected = {
'chef_environment': 'production',

0 comments on commit 84dc273

Please sign in to comment.