Esempio n. 1
0
def test_raises_on_invalid_slot_type():
    with pytest.raises(InvalidSlotTypeException):
        Slot.resolve_by_type("foobar")
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)