Testing Python by David Sale
Author:David Sale
Language: eng
Format: epub, pdf
ISBN: 9781118901243
Publisher: Wiley
Published: 2014-07-02T19:39:08+00:00
Delivering the Finished Article
Add the final step, which will check that the current balance displays as expected. This will take the balance in the step definition and then assert that the balance shown in the browser is the same as that passed into the step. Again, make use of the skeleton generated to give you the starting point.
Then I see a balance of "50"
Add the step definition to perform the check.
...
from nose.tools import assert_equal, assert_in
from lettuce import *
...
@step(u'I see a balance of "([^"]*)"')
def then_i_see_a_balance_of_group1(step, expected_balance):
assert_in ("Balance: {}".format(expected_balance),
world.form_response.text)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(12570)
Hello! Python by Anthony Briggs(9915)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9796)
The Mikado Method by Ola Ellnestam Daniel Brolund(9778)
Dependency Injection in .NET by Mark Seemann(9338)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8296)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7073)
Microservices with Go by Alexander Shuiskov(6836)
Practical Design Patterns for Java Developers by Miroslav Wengner(6758)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6698)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6413)
Angular Projects - Third Edition by Aristeidis Bampakos(6102)
The Art of Crafting User Stories by The Art of Crafting User Stories(5628)
NetSuite for Consultants - Second Edition by Peter Ries(5564)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5369)
Kotlin in Action by Dmitry Jemerov(5062)
