Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add help to nose plugin
- Loading branch information
Igor Khrol
committed
Mar 13, 2015
1 parent
2c35026
commit 605915a
Showing
9 changed files
with
41 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,25 @@ | ||
from unittest import TestCase | ||
from nose.tools import assert_raises | ||
from nose.tools import assert_raises, eq_ | ||
import tests | ||
from webium.base_page import BasePage | ||
from webium.driver import get_driver | ||
from webium.errors import WebiumException | ||
|
||
|
||
class PageWithoutUrl(BasePage): | ||
pass | ||
|
||
|
||
class TestWithStaticUrl(BasePage): | ||
url = tests.get_url('simple_page.html') | ||
|
||
|
||
class TestNoUrlValidation(TestCase): | ||
def test_no_url_validation(self): | ||
page = PageWithoutUrl() | ||
assert_raises(WebiumException, page.open) | ||
assert_raises(WebiumException, page.open) | ||
|
||
def test_static_url(self): | ||
page = TestWithStaticUrl() | ||
page.open() | ||
eq_(get_driver().title, 'Hello Webium') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters