~pkunal-parmar/ubuntu-calendar-app/EventBubble-Truncation

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2014-10-13 17:28:42 UTC
  • mfrom: (489.2.6 ubuntu-calendar-app)
  • Revision ID: tarmac-20141013172842-n9lhyodv3tuawt5q
Making dayview behave like something in iOS cal and also making dayview and weekview look similar.

Approved by Mihir Soni, Ubuntu Phone Apps Jenkins Bot, Alan Pope ( ͡° ͜ʖ ͡°).

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    def test_selecting_a_day_switches_to_day_view(self):
164
164
        """It must be possible to show a single day by clicking on it."""
165
165
        first_day_date = self.week_view.firstDay
166
 
        expected_day = first_day_date.day
 
166
        # expected_day = first_day_date.day
167
167
        expected_month = first_day_date.month
168
168
        expected_year = first_day_date.year
169
169
 
179
179
        # Check that the 'Day' view is on the correct/selected day.
180
180
        selected_date = datetime.datetime.strptime(
181
181
            self.app.main_view.get_month_year(day_view),
182
 
            '%B %d, %Y')
183
 
        self.assertThat(expected_day, Equals(selected_date.day))
 
182
            '%B %Y')
 
183
        # self.assertThat(expected_day, Equals(selected_date.day))
184
184
        self.assertThat(expected_month, Equals(selected_date.month))
185
185
        self.assertThat(expected_year, Equals(selected_date.year))