Beispiel #1
0
 def test_send_message_false(self):
     '''
     Test if it send a message to a HipChat room.
     '''
     self.assertEqual(
         hipchat.send_message('Development Room', 'Build is done',
                              'Build Server'), False)
Beispiel #2
0
 def test_send_message_false(self):
     '''
     Test if it send a message to a HipChat room.
     '''
     with patch('salt.modules.hipchat._query', MagicMock(return_value=False)):
         self.assertEqual(hipchat.send_message('Development Room',
                                               'Build is done',
                                               'Build Server'), False)
Beispiel #3
0
 def test_send_message_false(self):
     """
     Test if it send a message to a HipChat room.
     """
     self.assertEqual(hipchat.send_message("Development Room", "Build is done", "Build Server"), False)