Example #1
0
 def test_add_task_attribute(self, mock_new_task_attr):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.add_task_attribute('New Attribute')
     mock_new_task_attr.assert_called_with(1, 'New Attribute')
Example #2
0
 def test_add_task_attribute(self, mock_new_task_attr):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.add_task_attribute("New Attribute")
     mock_new_task_attr.assert_called_with(1, "New Attribute")
Example #3
0
 def test_add_task_attribute(self, mock_new_task_attr):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.add_task_attribute('New Attribute')
     mock_new_task_attr.assert_called_with(1, 'New Attribute')
Example #4
0
 def test_add_task_attribute(self, mock_new_task_attr):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.add_task_attribute("New Attribute")
     mock_new_task_attr.assert_called_with(1, "New Attribute")