def test__status_text__position__correctly_rendered(): h = Hold(MyLibrary(), MyCard()) h.status = (3, 17) assert h.status_text() == '3 of 17'
def test__status_text__in_transit__correctly_rendered(): h = Hold(MyLibrary(), MyCard()) h.status = Hold.IN_TRANSIT assert h.status_text() == 'In transit'
def test__status_text__unknown_status__correctly_rendered(): h = Hold(MyLibrary(), MyCard()) h.status = 'something I made up' assert h.status_text() == 'something I made up'
def test__status_text__ready__correctly_rendered(): h = Hold(MyLibrary(), MyCard()) h.status = Hold.READY assert h.status_text() == 'Ready'