def test_analyze_member_missing_payment_notpayingtype(self): member = self._create_member(category_name=Category.TEENAGER, first_payment_year=None, first_payment_month=None) anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)
def test_analyze_member_missing_signed_letter(self): member = self._create_member(has_subscription_letter=False) anything_missing = views.ReportComplete()._analyze_member(member) self.assertTrue(anything_missing)
def test_analyze_member_missing_payment_payingtype(self): member = self._create_member(first_payment_year=None, first_payment_month=None) anything_missing = views.ReportComplete()._analyze_member(member) self.assertTrue(anything_missing)
def test_analyze_member_missing_nickname(self): # nickname is not needed to consider the member as "complete" member = self._create_member(nickname='') anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)
def test_analyze_member_denied_picture(self): # picture is not needed to consider the member as "complete" member = self._create_member(picture=False) anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)
def test_analyze_member_collaborator_accepted(self): member = self._create_member(category_name=Category.COLLABORATOR, has_collaborator_acceptance=True) anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)
def test_analyze_member_student_with_certificate(self): member = self._create_member(category_name=Category.STUDENT, has_student_certificate=True) anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)
def test_analyze_member_all_perfect(self): member = self._create_member() anything_missing = views.ReportComplete()._analyze_member(member) self.assertFalse(anything_missing)