<s> import unittest <EOL> from robotide . robotapi import Variable <EOL> from robotide . controller . settingcontrollers import VariableController <EOL> class TestVariableEquality ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . _var = Variable ( object ( ) , '<STR_LIT>' , '<STR_LIT>' ) <EOL> self . _var_ctrl = VariableController ( object ( ) , self . _var ) <EOL> def test_is_not_equal_to_none ( self ) : <EOL> self . assertFalse ( self . _var_ctrl == None ) <EOL> def test_is_equal_to_self ( self ) : <EOL> self . assertTrue ( self . _var_ctrl == self . _var_ctrl ) <EOL> def test_is_not_equal_to_some_other ( self ) : <EOL> self . assertFalse ( self . _var_ctrl == VariableController ( object ( ) , Variable ( object ( ) , '<STR_LIT>' , '<STR_LIT:foo>' ) ) ) <EOL> def test_is_equal_if_same_underlining_var ( self ) : <EOL> other = VariableController ( object ( ) , self . _var ) <EOL> self . assertTrue ( self . _var_ctrl == other ) <EOL> def test_comment_variable ( self ) : <EOL> self . assertTrue ( self . _var_ctrl . has_data ( ) ) <EOL> self . assertFalse ( VariableController ( object ( ) , Variable ( object ( ) , '<STR_LIT>' , '<STR_LIT>' ) ) . has_data ( ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
