def test_init_and_reset_rejects_invalid_ints(): with pytest.raises(ValueError): HandleGenerator("XXXX") handles = HandleGenerator() with pytest.raises(ValueError): handles.reset("xyz")
def test_reset(self): handles = HandleGenerator('200') handles.reset('300') self.assertEqual('300', str(handles))
def test_reset(): handles = HandleGenerator("200") handles.reset("300") assert "300" == str(handles)
def test_reset(): handles = HandleGenerator('200') handles.reset('300') assert '300' == str(handles)