~pkunal-parmar/ubuntu-calendar-app/ICalImport

« back to all changes in this revision

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

  • Committer: carla-sella
  • Date: 2015-04-14 19:52:04 UTC
  • mto: This revision was merged to the branch mainline in revision 630.
  • Revision ID: carla.sella@gmail.com-20150414195204-vy2uo0r90y5x6u3i
Completed Calendar management tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""
20
20
 
21
21
 
22
 
from autopilot.matchers import Eventually
23
 
from testtools.matchers import Equals, NotEquals
 
22
from testtools.matchers import NotEquals
24
23
 
25
24
from calendar_app.tests import CalendarAppTestCase
26
25
 
32
31
        calendar_choice_popup = \
33
32
            self.app.main_view.go_to_calendar_choice_popup()
34
33
        calendarName = "Personal"
35
 
 
 
34
        original_calendar_color = \
 
35
            calendar_choice_popup.get_calendar_color(calendarName)
 
36
        calendar_choice_popup.open_color_picker_dialog(calendarName)
 
37
        colorPickerDialog = self.app.main_view.get_ColorPickerDialog()
 
38
        colorPickerDialog.change_calendar_color("color6")
 
39
 
 
40
        final_calendar_color = \
 
41
            calendar_choice_popup.get_calendar_color(calendarName)
 
42
 
 
43
        self.assertThat(
 
44
            original_calendar_color, NotEquals(final_calendar_color))
36
45
 
37
46
    def test_unselect_calendar(self):
38
47
        """ Test unselecting calendar    """