Пример #1
0
    def test_that_accessing_author_profile_works(self, mozwebqa):
        author_name = "rbillings"

        author_page = AuthorPage(mozwebqa, author_name)
        author_page.go_to_author_page()

        Assert.true(author_page.is_the_current_page)
        Assert.greater(len(author_page.posted_by), 0)
Пример #2
0
    def getChild(self, name, request):
        name = name.decode()
        if name == 'authors':
            return AuthorPage(self.app)
        elif name == 'countries':
            return CountryPage(self.app)
        elif name == 'notes':
            return NotePage(self.app)

        return NoResource()
Пример #3
0
    def test_that_accessing_author_profile_works(self, mozwebqa):
        author_page = AuthorPage(mozwebqa, author_name=u'rbillings')
        author_page.go_to_author_page()

        Assert.greater(len(author_page.posted_by), 0)