mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:19:01 +02:00

There are much better ways to handle this and most editors shouldn't need this in modern times, drop the noise from the files. Its not consitently applied anyway. (Bitbake rev: 5e43070e3087d09aea2f459b033d035c5ef747d0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
897 B
Python
30 lines
897 B
Python
#! /usr/bin/env python
|
|
#
|
|
# BitBake Toaster Implementation
|
|
#
|
|
# Copyright (C) 2013-2016 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
|
|
"""
|
|
A small example test demonstrating the basics of writing a test with
|
|
Toaster's SeleniumTestCase; this just fetches the Toaster home page
|
|
and checks it has the word "Toaster" in the brand link
|
|
|
|
New test files should follow this structure, should be named "test_*.py",
|
|
and should be in the same directory as this sample.
|
|
"""
|
|
|
|
from django.core.urlresolvers import reverse
|
|
from tests.browser.selenium_helpers import SeleniumTestCase
|
|
|
|
class TestSample(SeleniumTestCase):
|
|
""" Test landing page shows the Toaster brand """
|
|
|
|
def test_landing_page_has_brand(self):
|
|
url = reverse('landing')
|
|
self.get(url)
|
|
brand_link = self.find('.toaster-navbar-brand a.brand')
|
|
self.assertEqual(brand_link.text.strip(), 'Toaster')
|