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)
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)
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)