'Make sure we can get an assertion for a user if there is one.'

def test_get_for_user(self):

    user = UserFactory.create()
    badge_class = BadgeClassFactory.create()
    self.assertFalse(badge_class.get_for_user(user))
    assertion = BadgeAssertionFactory.create(badge_class=badge_class, user=user)
    self.assertEqual(list(badge_class.get_for_user(user)), [assertion])
