def test_year_equals_male_plus_female(self): for year in t.extract_years(self._stat): alls = t.extract_year(self._stat, year) males = t.extract_year_male(self._stat, year) females = t.extract_year_female(self._stat, year) self.assertEqual(len(alls), len(males) + len(females)) self.assertSubSequence(males, alls) self.assertSubSequence(females, alls)
def test_extract_year_male_correct_type(self): for year in t.extract_years(self._stat): for item in t.extract_year_male(self._stat, year): self._check_type(item)
def testExtractYearMale_CorrectType(self): for year in t.extract_years(self._stat): for item in t.extract_year_male(self._stat, year): self._check_type(item)
def test_extract_year_male_correct_order(self): for year in t.extract_years(self._stat): self.assertHasOrder( t.extract_year_male(self._stat, year), func=self._cmp)
def testExtractYearMale_CorrectOrder(self): for year in t.extract_years(self._stat): self.assertHasOrder(t.extract_year_male(self._stat, year), func=self._cmp)