def test_challenge_has_added_board(self): Factory.tag(self.a1, name="Board of Directors") bg = Factory.group(self.a1,"board of directors") Factory.grouprule(self.a1, "have any tag that","contains","Board of Directors", group=bg) Factory.tag_person(self.a1, tag_name="Board of Directors") self.a1.check_challenge_progress() assert self.a1.challenge_has_added_board == True
def test_challenge_has_set_up_tags(self): # needed since the setup creates some and I don't want to add it to all the other tests. Tag.objects_by_account(self.a1).delete() self.a1.check_challenge_progress() assert self.a1.challenge_has_set_up_tags == False Factory.tag_person(self.a1) self.a1.check_challenge_progress() assert self.a1.challenge_has_set_up_tags == True