Пример #1
0
 def test1_TaskEvent(self):
     
     username=settings.google_calendar_account
     password=raw_input('Password for %s?' %username)
     
     entry = EntryManager(username, password)
     
     mytask=task.MyTask('Google calendar')
     time.sleep(120)
     mytask.stop()
     
     event =entry.insert_single_event(mytask.name, mytask._startAt.timetuple(), mytask._stopAt.timetuple())
     
     self.assertFalse(event == None)
Пример #2
0
    def test1_TaskEvent(self):

        username = settings.google_calendar_account
        password = raw_input('Password for %s?' % username)

        entry = EntryManager(username, password)

        mytask = task.MyTask('Google calendar')
        time.sleep(120)
        mytask.stop()

        event = entry.insert_single_event(mytask.name,
                                          mytask._startAt.timetuple(),
                                          mytask._stopAt.timetuple())

        self.assertFalse(event == None)
Пример #3
0
 def test2_TaskEvent(self):
     
     username=settings.google_calendar_account
     password=raw_input('Password for %s?' %username)
     
     entry = EntryManager(username, password)
     
     my_task_list=task.MyTaskList()        
     my_task_list.append('Google calendar')
     time.sleep(120)
     my_task_list.current.stop()
     
     tasks=my_task_list.task_to_send()
     
     for item in tasks:
         event =entry.insert_single_event(item.name, item._startAt.timetuple(), item._stopAt.timetuple())
         self.assertFalse(event == None)
Пример #4
0
    def test2_TaskEvent(self):

        username = settings.google_calendar_account
        password = raw_input('Password for %s?' % username)

        entry = EntryManager(username, password)

        my_task_list = task.MyTaskList()
        my_task_list.append('Google calendar')
        time.sleep(120)
        my_task_list.current.stop()

        tasks = my_task_list.task_to_send()

        for item in tasks:
            event = entry.insert_single_event(item.name,
                                              item._startAt.timetuple(),
                                              item._stopAt.timetuple())
            self.assertFalse(event == None)