def test_copy_when_clone_people_is_true_and_contact_is_not_none(self, _):
   """ Test copy() method with next parameters:
   clone_people: True
   self.contact: not None
   :return: None
   """
   taskgroup = task_group.TaskGroup()
   taskgroup.contact = 'Person id=0x0000AABBCCDDEEFF'
   result = taskgroup.copy(clone_people=True)
   self.assertEqual(result.contact, taskgroup.contact)
Esempio n. 2
0
 def test_copy_when_clone_people_is_false_and_contact_is_none(
         self, get_current_user, *_):
     """ Test copy() method with next parameters:
     clone_people: False
     self.contact: None
     :return: None
     """
     taskgroup = task_group.TaskGroup()
     taskgroup.contact = None
     result = taskgroup.copy(clone_people=False)
     self.assertEqual(result.contact, get_current_user())
Esempio n. 3
0
 def test_copy_when_clone_people_is_false_and_contact_is_not_none(
         self, get_current_user, *_):
     """ Test copy() method with next parameters:
     clone_people: False
     self.contact: not None
     :return: None
     """
     taskgroup = task_group.TaskGroup()
     taskgroup.title = 'title'
     taskgroup.contact = 'Person id=0x0000AABBCCDDEEFF'
     result = taskgroup.copy(clone_people=False)
     self.assertEqual(result.contact, get_current_user())