@@ -441,7 +441,6 @@ def test_pre_generation_about_is_dir_exists_action_0(self):
441441 'TESTCASE.ABOUT' ),
442442 {'about_file' : '/TESTCASE/' ,
443443 'version' : '0.8.1' ,
444- 'about_resource_path' : '/TESTCASE/' ,
445444 'about_resource' : '.' ,
446445 'name' : 'ABOUT tool' }]]
447446
@@ -479,7 +478,6 @@ def test_pre_generation_about_exists_action_1(self):
479478 expected = [[join (TESTDATA_DIR , 'test_files_for_genabout' ,
480479 'about.py.ABOUT' ),
481480 {'about_file' : '/about.py.ABOUT' ,
482- 'about_resource_path' : '/about.py.ABOUT' ,
483481 'version' : '0.8.2' ,
484482 'about_resource' : '.' ,
485483 'name' : 'ABOUT tool' }]]
@@ -503,7 +501,6 @@ def test_pre_generation_about_exists_action_2(self):
503501 'about.py.ABOUT' ),
504502 {'about_file' : 'about.py.ABOUT' ,
505503 'name' : 'ABOUT tool' ,
506- 'about_resource_path' : '/about.py.ABOUT' ,
507504 'version' : '0.8.1' ,
508505 'test' : 'test sample' ,
509506 'about_resource' : '.' }]]
@@ -527,7 +524,6 @@ def test_pre_generation_about_exists_action_3(self):
527524 'about.py.ABOUT' ),
528525 {'about_file' : '/about.py.ABOUT' ,
529526 'version' : '0.8.2' ,
530- 'about_resource_path' : '/about.py.ABOUT' ,
531527 'about_resource' : '.' ,
532528 'name' : '' ,
533529 'test' : 'test sample' }]]
@@ -787,57 +783,3 @@ def test_update_about_resource_no_about_file_no_field_isdir(self):
787783 about_file_exist = False
788784 gen .update_about_resource (test_fields , about_file_exist )
789785 self .assertEqual (test_fields , expected )
790-
791- def test_update_about_resource_path_about_file_field_exist (self ):
792- gen = genabout .GenAbout ()
793- test_fields = {'about_resource_path' : '/tmp/test.c' ,
794- 'about_file' : '/tmp/test.c' }
795- about_file_exist = True
796- gen .update_about_resource_path (test_fields , about_file_exist )
797- # FIXME: this will always be true: the test is incorrect
798- self .assertTrue (test_fields == test_fields , 'The dict should not be changed.' )
799-
800- def test_update_about_resource_path_about_file_field_not_exist_isFile (self ):
801- gen = genabout .GenAbout ()
802- test_fields = {'about_file' : '/tmp/test.c' }
803- expected = {'about_file' : '/tmp/test.c' ,
804- 'about_resource_path' : '/tmp/test.c' }
805- about_file_exist = True
806- gen .update_about_resource_path (test_fields , about_file_exist )
807- self .assertEqual (test_fields , expected )
808-
809- def test_update_about_resource_path_about_file_field_not_exist_isDir (self ):
810- gen = genabout .GenAbout ()
811- test_fields = {'about_file' : '/tmp/test/' }
812- expected = {'about_file' : '/tmp/test/' ,
813- 'about_resource_path' : '/tmp/test/' }
814- about_file_exist = True
815- gen .update_about_resource_path (test_fields , about_file_exist )
816- self .assertEqual (test_fields , expected )
817-
818- def test_update_about_resource_path_no_about_file_field_exist (self ):
819- gen = genabout .GenAbout ()
820- test_fields = {'about_resource_path' : '/tmp/test.c' ,
821- 'about_file' : '/tmp/test.c' }
822- about_file_exist = False
823- gen .update_about_resource_path (test_fields , about_file_exist )
824- # FIXME: this will always be true: the test is incorrect
825- self .assertTrue (test_fields == test_fields , 'The dict should not be changed.' )
826-
827- def test_update_about_resource_path_no_about_file_field_not_exist_isFile (self ):
828- gen = genabout .GenAbout ()
829- test_fields = {'about_file' : '/tmp/test.c' }
830- expected = {'about_file' : '/tmp/test.c' ,
831- 'about_resource_path' : '/tmp/test.c' }
832- about_file_exist = False
833- gen .update_about_resource_path (test_fields , about_file_exist )
834- self .assertEqual (test_fields , expected )
835-
836- def test_update_about_resource_path_no_about_file_field_not_exist_isDir (self ):
837- gen = genabout .GenAbout ()
838- test_fields = {'about_file' : '/tmp/test/' }
839- expected = {'about_file' : '/tmp/test/' ,
840- 'about_resource_path' : '/tmp/test/' }
841- about_file_exist = False
842- gen .update_about_resource_path (test_fields , about_file_exist )
843- self .assertEqual (test_fields , expected )
0 commit comments