@FileSystem.in_directory(current_directory, 'django', 'dill')
def test_use_test_database_setting():
 for i in range(1, 2):
  (status, out) = commands.getstatusoutput(('python manage.py harvest --settings=testdbsettings ' + 'leaves/features/testdb.feature'))
  assert_equals(status, 0, out)
  assert ('Harvester count: 1' in out), out

@ FileSystem . in_directory ( current_directory , 'django' , 'dill' ) def test_use_test_database_setting ( ) : for i in range ( 1 , 2 ) : ( status , out ) = commands . getstatusoutput ( ( 'python manage.py harvest --settings=testdbsettings ' + 'leaves/features/testdb.feature' ) ) assert_equals ( status , 0 , out ) assert ( 'Harvester count: 1' in out ) , out
test database is recreated each time if lettuce_use_test_database is set .