示例#1
0
 def test_out_dir_exists_gdi_file_path(self, tmpdir):
     game_name = "Morgan the Bull And Stanley the Bear Go To Market"
     out_dir = tmpdir.mkdir(game_name)
     gdi_filepath = path.join(out_dir, game_name + ".gdi")
     g = Gdipak()
     g.write_name_file(out_dir, gdi_filepath)
     assert (path.isfile(path.join(out_dir, game_name + ".txt")))
示例#2
0
 def test_out_dir_doesnt_exist_bare_gdi_file_str(self, tmpdir):
     game_name = "Somebody Once Told Me - Allstars!"
     out_dir = path.join(tmpdir, game_name)
     gdi_filename = game_name + ".gdi"
     g = Gdipak()
     g.write_name_file(out_dir, gdi_filename)
     assert (path.isfile(path.join(out_dir, game_name + ".txt")))
示例#3
0
 def test_out_dir_exists_bare_gdi_file_str(self, tmpdir):
     game_name = "Bills Okay But Lonely Adventure- The Game"
     out_dir = tmpdir.mkdir(game_name)
     gdi_filename = game_name + ".gdi"
     g = Gdipak()
     g.write_name_file(out_dir, gdi_filename)
     assert (path.isfile(path.join(out_dir, game_name + ".txt")))