'Verify the KB Badge is awarded properly.'

def test_aoa_badge(self):

    year = date.today().year
    u = UserFactory()
    b = BadgeFactory(slug=AOA_BADGE['slug'].format(year=year), title=AOA_BADGE['title'].format(year=year), description=AOA_BADGE['description'].format(year=year))
    for _ in range(49):
        ReplyFactory(user=u)
    assert (not b.is_awarded_to(u))
    ReplyFactory(user=u)
    assert b.is_awarded_to(u)
