/* eslint capitalized-comments: ["off"],
          comma-dangle: ["off"] */

'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
var fs = require('fs');

describe('generator-python-cmd:app', () => {
  beforeAll(() => {
    return helpers.run(path.join(__dirname, '../generators/app'))
      .withPrompts({someAnswer: true});
  });

  const expectedFilePaths = [
    '.gitignore',
    'app.py',
    'LICENSE.md',
    'README.md',
    'setup.py',
    'package/cli.py',
    'package/config.py',
    'package/controller.py',
    'package/__init__.py',
    'docs/make.bat',
    'docs/Makefile',
    'docs/source/conf.py',
    'docs/source/index.rst',
    'tests/context.py',
    'tests/test.py',
  ];

  const expectedEmptyDirPaths = [
    'config',
    'docs/source/_static',
    'docs/source/_templates',
  ];

  const contentFilePaths = expectedFilePaths.map(
    function (expectedFilePath) {
      return path.join(
        __dirname,
        'data',
        expectedFilePath.replace(
          /^\./, ''));
    }
  );

  it('creates expected files', () => {
    assert.file(expectedFilePaths);
  });

  it('creates expected empty directories', () => {
    assert.file(expectedEmptyDirPaths);
  });

  it('creates expected file content', () => {
    var fileContentItems = [];
    var i;
    for (i = 0; i < expectedFilePaths.length; i++) {
      const contentFilePath = contentFilePaths[i];
      const expectedContent = fs.readFileSync(
        contentFilePath, 'utf8', (err, data) => {
          if (err) {
            throw err;
          }
          return data;
        });

      fileContentItems.push(
        [contentFilePath, expectedContent]);
    }

    assert.fileContent(fileContentItems);
  });
});


@@ -872,220 +872,8 @@
 %5D;%0A%0A
-  const contentFilePaths = expectedFilePaths.map(%0A    function (expectedFilePath) %7B%0A      return path.join(%0A        __dirname,%0A        'data',%0A        expectedFilePath.replace(%0A          /%5E%5C./, ''));%0A    %7D%0A  );%0A%0A
   it
@@ -899,32 +899,32 @@
 files', () =%3E %7B%0A
+
     assert.file(
@@ -1205,45 +1205,180 @@
 nst 
-contentFilePath = contentFilePaths%5Bi%5D
+expectedFilePath = expectedFilePaths%5Bi%5D;%0A      const contentFilePath = path.join(%0A        __dirname,%0A        'data',%0A        expectedFilePath.replace(%0A          /%5E%5C./, ''))
 ;%0A  
@@ -1602,23 +1602,24 @@
        %5B
-content
+expected
 FilePath

Fix the file content test