def test_get_hashes_json_file_contents(self):
    'Test get_hashes_json_file_contents parses provided hash dict\n        correctly to JSON format.\n        '
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('*',)):
        hashes = {'path/file.js': '123456'}
        self.assertEqual(build.get_hashes_json_file_contents(hashes), 'var hashes = JSON.parse(\'{"/path/file.js": "123456"}\');')
        hashes = {'file.js': '123456', 'file.min.js': '654321'}
        self.assertEqual(build.get_hashes_json_file_contents(hashes), 'var hashes = JSON.parse(\'{"/file.min.js": "654321", "/file.js": "123456"}\');')
Test get_hashes_json_file_contents parses provided hash dict
correctly to JSON format.
def test_get_hashes_json_file_contents(self):
    'Test get_hashes_json_file_contents parses provided hash dict\n        correctly to JSON format.\n        '
    with self.swap(build, 'FILEPATHS_PROVIDED_TO_FRONTEND', ('*',)):
        hashes = {'path/file.js': '123456'}
        self.assertEqual(build.get_hashes_json_file_contents(hashes), 'var hashes = JSON.parse(\'{"/path/file.js": "123456"}\');')
        hashes = {'file.js': '123456', 'file.min.js': '654321'}
        self.assertEqual(build.get_hashes_json_file_contents(hashes), 'var hashes = JSON.parse(\'{"/file.min.js": "654321", "/file.js": "123456"}\');')