Skip to content

Commit

Permalink
Why are tests not passing for location type?
Browse files Browse the repository at this point in the history
  • Loading branch information
revence27 committed Apr 30, 2012
1 parent 33fff39 commit 85b3006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mother_project/mr_src/mr/utils.py
Expand Up @@ -101,6 +101,7 @@ def check_for_validity(progress):
location_poll = progress.script.steps.get(poll__name='mrs_location').poll
loc = find_best_response(session, location_poll)
if not loc: return False
print '%s %s' % (loc.type, loc.type == 'district')
return loc.type == 'district'
except IndexError:
pass
Expand All @@ -112,7 +113,6 @@ def validate_district(sender, **kwargs):
return
if not check_for_validity(sender):
return
print 'We got a district, and now what?'
sender.step = sender.script.steps.get(poll__name = 'mrs_mensesweeks')
sender.save()

Expand Down

0 comments on commit 85b3006

Please sign in to comment.