def test_check_digit_is_correct(self): isbn = ISBN10(group='1', registrant='4516', publication='7331') assert isbn.check_digit == '0' isbn = ISBN10(group='0', registrant='06', publication='230125') assert isbn.check_digit == 'X' isbn = ISBN10(group='1', registrant='4936', publication='8222') assert isbn.check_digit == '9'
def test_check_digit_is_correct(self): isbn = ISBN10(group="1", registrant="4516", publication="7331") assert isbn.check_digit == "0" isbn = ISBN10(group="0", registrant="06", publication="230125") assert isbn.check_digit == "X" isbn = ISBN10(group="1", registrant="4936", publication="8222") assert isbn.check_digit == "9"
def test_format_length(self): isbn = ISBN10(group='1', registrant='4516', publication='7331') assert len(isbn.format()) == 10
def test_format_length(self): isbn = ISBN10(group="1", registrant="4516", publication="7331") assert len(isbn.format()) == 10