<s> """<STR_LIT>""" <EOL> from salad . steps . everything import ImportRecord , world , django_url , time , Project <EOL> from lettuce import step <EOL> from django . core . urlresolvers import reverse <EOL> @ step ( u'<STR_LIT>' ) <EOL> def i_visit_the_home_page ( step ) : <EOL> world . browser . visit ( django_url ( reverse ( "<STR_LIT>" ) ) ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def given_i_go_to_the_jasmine_unit_tests_for_the_SEED ( step ) : <EOL> world . browser . visit ( django_url ( reverse ( "<STR_LIT>" ) ) ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def then_i_should_see_that_the_tests_passed ( step ) : <EOL> time . sleep ( <NUM_LIT:2> ) <EOL> try : <EOL> assert world . browser . is_element_present_by_css ( "<STR_LIT>" ) <EOL> except : <EOL> time . sleep ( <NUM_LIT:50> ) <EOL> assert len ( world . browser . find_by_css ( "<STR_LIT>" ) ) > <NUM_LIT:0> <EOL> @ step ( u'<STR_LIT>' ) <EOL> def when_i_visit_the_projects_page ( step ) : <EOL> world . browser . visit ( django_url ( reverse ( "<STR_LIT>" ) ) + "<STR_LIT>" ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def then_i_should_see_my_projects ( step ) : <EOL> assert world . browser . is_text_present ( '<STR_LIT>' ) <EOL> assert world . browser . is_text_present ( '<STR_LIT>' ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def and_i_have_a_project ( step ) : <EOL> Project . objects . create ( <EOL> name = "<STR_LIT>" , <EOL> super_organization_id = world . org . id , <EOL> owner = world . user <EOL> ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def and_i_have_a_dataset ( step ) : <EOL> ImportRecord . objects . create ( <EOL> name = '<STR_LIT>' , <EOL> super_organization = world . org , <EOL> owner = world . user <EOL> ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def when_i_visit_the_dataset_page ( step ) : <EOL> world . browser . visit ( django_url ( reverse ( "<STR_LIT>" ) ) + "<STR_LIT>" ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def and_i_delete_a_dataset ( step ) : <EOL> delete_icon = world . browser . find_by_css ( '<STR_LIT>' ) <EOL> delete_icon . click ( ) <EOL> alert = world . browser . get_alert ( ) <EOL> alert . accept ( ) <EOL> @ step ( u'<STR_LIT>' ) <EOL> def then_i_should_see_no_datasets ( step ) : <EOL> number_of_datasets = len ( world . browser . find_by_css ( '<STR_LIT>' ) ) <EOL> number_of_datasets = len ( world . browser . find_by_css ( '<STR_LIT>' ) ) <EOL> number_of_datasets = len ( world . browser . find_by_css ( '<STR_LIT>' ) ) <EOL> assert number_of_datasets == <NUM_LIT:0> </s>
