|
@@ -7,14 +7,17 @@ def initialize(feature):
|
|
# just make sure our cleanup won't fail if we never did
|
|
# just make sure our cleanup won't fail if we never did
|
|
# run the bind10 instance
|
|
# run the bind10 instance
|
|
world.bind10 = None
|
|
world.bind10 = None
|
|
|
|
+ world.bind10_output = []
|
|
|
|
|
|
@after.each_scenario
|
|
@after.each_scenario
|
|
def cleanup(feature):
|
|
def cleanup(feature):
|
|
world.shutdown_server()
|
|
world.shutdown_server()
|
|
|
|
+ world.bind10_output = []
|
|
|
|
|
|
@step(u'Given I have no database')
|
|
@step(u'Given I have no database')
|
|
def given_i_have_no_database(step):
|
|
def given_i_have_no_database(step):
|
|
- assert not os.path.exists("test.db")
|
|
|
|
|
|
+ if os.path.exists("test.db"):
|
|
|
|
+ os.remove("test.db")
|
|
|
|
|
|
@step(u'I should see a database file')
|
|
@step(u'I should see a database file')
|
|
def i_should_see_a_database_file(step):
|
|
def i_should_see_a_database_file(step):
|