Esempio n. 1
0
 def test_add_comment(self, mock_update):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     user_story = UserStory(rm, id=1)
     user_story.add_comment('hola')
     mock_update.assert_called_with(
         comment='hola'
     )
Esempio n. 2
0
 def test_add_comment(self, mock_update):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     user_story = UserStory(rm, id=1)
     user_story.add_comment('hola')
     mock_update.assert_called_with(
         comment='hola'
     )
Esempio n. 3
0
 def test_add_comment(self, mock_update):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     user_story = UserStory(rm, id=1)
     user_story.add_comment("hola")
     mock_update.assert_called_with(comment="hola")
Esempio n. 4
0
 def test_add_comment(self, mock_update):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     user_story = UserStory(rm, id=1)
     user_story.add_comment("hola")
     mock_update.assert_called_with(comment="hola")