Esempio n. 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)
Esempio n. 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)
Esempio n. 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)