Created
February 10, 2014 23:32
-
-
Save k-bx/8926404 to your computer and use it in GitHub Desktop.
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
Feature: Compute factorial | |
In order to play with Lettuce | |
As beginners | |
We'll implement factorial | |
Scenario: Backup at certain times | |
Given I have the time 18:00 | |
Then I run server sync | |
Then I run server sync at 5:00 |
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
from lettuce import step | |
from lettuce import world | |
@step("I have the time 18:00") | |
def getting_time(step): | |
world.time = '18:00' | |
@step("I run server sync") | |
def server_sync_utcnow(step): | |
print '> server_sync_utcnow' | |
print '' | |
assert True | |
@step("I run server sync at \"(.*)\"") | |
def server_sync_at_date(step): | |
print '> server_sync_at_date' | |
print '' | |
assert False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment