示例#1
0
 def test_wait(self):
     '''
         Test to fire an event on the Salt master
     '''
     self.assertDictEqual(event.wait("salt"), {
         'changes': {},
         'comment': '',
         'name': 'salt',
         'result': True
     })
示例#2
0
文件: event_test.py 项目: DaveQB/salt
 def test_wait(self):
     '''
         Test to fire an event on the Salt master
     '''
     self.assertDictEqual(event.wait("salt"),
                          {'changes': {},
                           'comment': '',
                           'name': 'salt',
                           'result': True}
                          )
示例#3
0
 def test_wait(self):
     """
         Test to fire an event on the Salt master
     """
     self.assertDictEqual(
         event.wait("salt"),
         {
             "changes": {},
             "comment": "",
             "name": "salt",
             "result": True
         },
     )
示例#4
0
def test_wait():
    """
    Test to fire an event on the Salt master
    """
    assert event.wait("salt") == {
        "changes": {},
        "comment": "",
        "name": "salt",
        "result": True,
    }

    assert event.wait("salt", sfun="some_function") == {
        "changes": {},
        "comment": "",
        "name": "salt",
        "result": True,
    }

    assert event.wait("salt", data={"random": "data"}) == {
        "changes": {},
        "comment": "",
        "name": "salt",
        "result": True,
    }