~ubuntu-branches/ubuntu/utopic/gallery-app/utopic-proposed

« back to all changes in this revision

Viewing changes to tests/autopilot/gallery_app/tests/test_album_view.py

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-03-06 16:39:13 UTC
  • mto: This revision was merged to the branch mainline in revision 52.
  • Revision ID: package-import@ubuntu.com-20140306163913-qxrw49yziyn3o6ui
Tags: upstream-0.0.67+14.04.20140306
ImportĀ upstreamĀ versionĀ 0.0.67+14.04.20140306

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
from gallery_app.emulators.media_selector import MediaSelector
19
19
from gallery_app.emulators import album_editor
20
20
from gallery_app.tests import GalleryTestCase
21
 
import unittest
 
21
 
 
22
from unittest import skip
 
23
 
22
24
 
23
25
class TestAlbumView(GalleryTestCase):
24
26
    """Tests the album view of the gallery app"""
88
90
            lambda: self.album_view.number_of_photos(),
89
91
            Eventually(Equals(num_photos_start + 1)))
90
92
 
 
93
    @skip("UnicodeEncodeError: 'ascii' codec can't encode character u'xa2'")
91
94
    def test_add_photo_to_new_album(self):
92
95
        self.main_view.open_toolbar().click_button("addButton")
93
96
        self.ui_update()
116
119
            lambda: self.album_view.number_of_photos(),
117
120
            Eventually(Equals(num_photos_start + 1)))
118
121
 
119
 
    @unittest.skip("Temporarily disable as it fails in some cases, supposedly due to problems with the infrastructure")
 
122
    @skip("Temporarily disable as it fails in some cases, supposedly due to "
 
123
          "problems with the infrastructure")
120
124
    def test_save_state(self):
121
125
        self.main_view.close_toolbar()
122
126
        self.open_first_album()
130
134
        self.assertThat(view.visible, Eventually(Equals(True)))
131
135
        self.assertThat(view.albumId, Eventually(Equals(id)))
132
136
 
133
 
    @unittest.skip("Temporarily disable as it fails in some cases, supposedly due to problems with the infrastructure")
 
137
    @skip("Temporarily disable as it fails in some cases, supposedly due to "
 
138
          "problems with the infrastructure")
134
139
    def test_no_save_state_on_back(self):
135
140
        self.main_view.close_toolbar()
136
141
        self.open_first_album()