<s> import unittest2 as unittest <EOL> from testcases . base import BaseTestCaseMixin <EOL> class GetTreeTestCase ( BaseTestCaseMixin , unittest . TestCase ) : <EOL> def test_none_ret ( self ) : <EOL> self . assertEqual ( self . service . get_tree ( <NUM_LIT:0> ) , None ) <EOL> def test_notset ( self ) : <EOL> res = self . service . get_tree ( <NUM_LIT:1> ) <EOL> self . assertEqual ( res . value , <NUM_LIT:1> ) <EOL> self . assertEqual ( res . left , None ) <EOL> self . assertEqual ( res . right , None ) <EOL> def test_none ( self ) : <EOL> res = self . service . get_tree ( <NUM_LIT:2> ) <EOL> self . assertEqual ( res . value , <NUM_LIT:2> ) <EOL> self . assertEqual ( res . left , None ) <EOL> self . assertEqual ( res . right , None ) <EOL> def test_none_2 ( self ) : <EOL> res = self . service . get_tree ( <NUM_LIT:3> ) <EOL> self . assertEqual ( res . value , <NUM_LIT:3> ) <EOL> self . assertEqual ( res . left . value , <NUM_LIT:4> ) <EOL> self . assertEqual ( res . left . left , None ) <EOL> self . assertEqual ( res . left . right , None ) <EOL> self . assertEqual ( res . right . value , <NUM_LIT:5> ) <EOL> self . assertEqual ( res . right . left , None ) <EOL> self . assertEqual ( res . right . right , None ) </s>
