~mihirsoni/ubuntu-calendar-app/dateSelectNewEventTest

« back to all changes in this revision

Viewing changes to tests/autopilot/calendar_app/__init__.py

  • Committer: Mihir Soni
  • Date: 2014-10-23 23:15:56 UTC
  • Revision ID: mihirsoni.123@gmail.com-20141023231556-w0vdpos7cfk4mq4c
pep8 fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
546
546
class NewEvent(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
547
547
 
548
548
    """Autopilot helper for the New Event page."""
549
 
    
 
549
 
550
550
    @autopilot.logging.log_action(logger.info)
551
551
    def add_event(self, event_information):
552
552
        """Add a new event.
597
597
        self.pointing_device.click_object(dateButton)
598
598
        main_view = self.get_root_instance().select_single(MainView)
599
599
        picker = main_view.wait_select_single("DatePicker")
600
 
        date_to_pick= datetime.date(date.year, date.month, date.day)
 
600
        date_to_pick = datetime.date(date.year, date.month, date.day)
601
601
        picker.pick_date(date_to_pick)
602
602
        self.pointing_device.click_object(dateButton)
603
603