def test_calc_check_digit_issn_with_invalid_ISSN(self): issn = u'2179-9752' self.assertNotEqual(utils.calc_check_digit_issn(issn), issn[-1])
def test_calc_check_digit_issn_with_check_digit_X(self): issn = u'2179-975X' self.assertEqual(utils.calc_check_digit_issn(issn), issn[-1])
def test_calc_check_digit_issn_with_valid_ISSN(self): issn = u'0102-3306' self.assertEqual(utils.calc_check_digit_issn(issn), issn[-1])
def test_calc_check_digit_issn_with_check_digit_zero(self): issn = u'0102-8650' self.assertEqual(utils.calc_check_digit_issn(issn), issn[-1])