def test_add_comment(self, mock_update): rm = RequestMaker('/api/v1', 'fakehost', 'faketoken') task = Task(rm, id=1) task.add_comment('hola') mock_update.assert_called_with( comment='hola' )
def test_add_comment(self, mock_update): rm = RequestMaker('/api/v1', 'fakehost', 'faketoken') task = Task(rm, id=1) task.add_comment('hola') mock_update.assert_called_with(comment='hola')
def test_add_comment(self, mock_update): rm = RequestMaker("/api/v1", "fakehost", "faketoken") task = Task(rm, id=1) task.add_comment("hola") mock_update.assert_called_with(comment="hola")