Example #1
0
 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'
     )
Example #2
0
 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')
Example #3
0
 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")