Revision: 3371 Author: jussi.ao.malinen Date: Fri May 21 01:59:49 2010 Log: added is_set to fixture and tags http://code.google.com/p/robotframework/source/detail?r=3371
Modified: /trunk/src/robot/parsing/settings.py ======================================= --- /trunk/src/robot/parsing/settings.py Thu May 20 10:08:44 2010 +++ /trunk/src/robot/parsing/settings.py Fri May 21 01:59:49 2010 @@ -64,6 +64,8 @@ self.name = value[0] if value else '' self.args = value[1:] + def is_set(self): + return self.name is not None class Timeout(_Setting): @@ -77,7 +79,17 @@ class Tags(_Setting): - pass + + def __init__(self, table=None, comment=None): + _Setting.__init__(self, table, comment) + self._value_set = False + + def set(self, value, comment=None): + _Setting.set(self, value, comment) + self._value_set = True + + def is_set(self): + return self._value_set class Arguments(_Setting):