def test_from_invalid_string(self): with pytest.raises(ValueError): ShiftAction.from_string('asdf')
def test_from_string(self): a = ShiftAction.from_string(self.as_str) assert isinstance(a, ShiftAction)