<s> from test . testlib import * <EOL> from git import * <EOL> class TestHead ( object ) : <EOL> def setup ( self ) : <EOL> self . repo = Repo ( GIT_REPO ) <EOL> @ patch_object ( Git , '<STR_LIT>' ) <EOL> def test_repr ( self , git ) : <EOL> git . return_value = fixture ( '<STR_LIT>' ) <EOL> head = self . repo . heads [ <NUM_LIT:0> ] <EOL> assert_equal ( '<STR_LIT>' % head . name , repr ( head ) ) <EOL> assert_true ( git . called ) <EOL> assert_equal ( git . call_args , ( ( '<STR_LIT>' , '<STR_LIT>' ) , { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } ) ) <EOL> @ patch_object ( Git , '<STR_LIT>' ) <EOL> def test_ref_with_path_component ( self , git ) : <EOL> git . return_value = fixture ( '<STR_LIT>' ) <EOL> head = self . repo . heads [ <NUM_LIT:0> ] <EOL> assert_equal ( '<STR_LIT>' , head . name ) <EOL> assert_true ( git . called ) <EOL> assert_equal ( git . call_args , ( ( '<STR_LIT>' , '<STR_LIT>' ) , { '<STR_LIT>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } ) ) </s>
