def test_getorigin_2_return_origin(self,rf): actionitem_createview = ActionItemCreateView() actionitem_createview.origin = 'notNone' origin = actionitem_createview.get_origin(actionitem_createview, rf) assert origin is 'notNone'
def test_getorigin_3_raiseserror_when_origin_none(self, rf): actionitem_createview = ActionItemCreateView() with pytest.raises(ImproperlyConfigured): origin = actionitem_createview.get_origin(actionitem_createview, rf)
def test_getorigin_1_originnone_when_not_set(self, rf): actionitem_createview = ActionItemCreateView() origin = actionitem_createview.get_origin(actionitem_createview, rf) assert origin is None