def test_check_digit_is_correct(self): isbn = ISBN13(ean='978', group='1', registrant='4516', publication='7331') assert isbn.check_digit == '9' isbn = ISBN13(ean='978', group='1', registrant='59327', publication='599') assert isbn.check_digit == '0' isbn = ISBN13(ean='978', group='1', registrant='4919', publication='2757') assert isbn.check_digit == '1'
def test_check_digit_is_correct(self): isbn = ISBN13(ean="978", group="1", registrant="4516", publication="7331") assert isbn.check_digit == "9" isbn = ISBN13(ean="978", group="1", registrant="59327", publication="599") assert isbn.check_digit == "0" isbn = ISBN13(ean="978", group="1", registrant="4919", publication="2757") assert isbn.check_digit == "1"
def test_format_length(self): isbn = ISBN13(ean='978', group='1', registrant='4516', publication='7331') assert len(isbn.format()) == 13
def test_format_length(self): isbn = ISBN13(ean="978", group="1", registrant="4516", publication="7331") assert len(isbn.format()) == 13