def test_raises_on_invalid_slot_type(): with pytest.raises(InvalidSlotTypeException): Slot.resolve_by_type("foobar")
def test_has_a_type_name(self): slot = self.create_slot(influence_conversation=True) assert slot.type_name is not None assert type(slot) == Slot.resolve_by_type(slot.type_name)
def test_has_a_type_name(self): slot = self.create_slot() assert slot.type_name is not None assert type(slot) == Slot.resolve_by_type(slot.type_name)