def test_validate_issn_with_no_numerical_issn(self): issn = u'abcd-fghi' self.assertRaises(ValueError, lambda: utils.validate_issn(issn))
def test_validate_issn_with_no_well_format_with_hyphen(self): issn = u'2-1799754' self.assertRaises(ValueError, lambda: utils.validate_issn(issn))
def test_validate_issn_with_size_greater_than_eight(self): issn = u'2179-975123' self.assertRaises(ValueError, lambda: utils.validate_issn(issn))
def test_validate_issn_with_ISSN_as_Number(self): issn = 21799754 self.assertRaises(TypeError, lambda: utils.validate_issn(issn))