def test_cache_name(self):
    (whisky_1, whisky_2) = self.test_suite.get_whiskies()
    chart = Chart(reference=whisky_1, comparison=whisky_2)
    cache_dir_path = chart.cache_path()
    cache_file_path = chart.cache_name(True)
    cache_name = chart.cache_name()
    self.assertEqual(cache_name, '110113221101x111113210202.svg')
    self.assertEqual(cache_file_path, cache_dir_path.child(cache_name).absolute())
def test_cache_name(self):
    (whisky_1, whisky_2) = self.test_suite.get_whiskies()
    chart = Chart(reference=whisky_1, comparison=whisky_2)
    cache_dir_path = chart.cache_path()
    cache_file_path = chart.cache_name(True)
    cache_name = chart.cache_name()
    self.assertEqual(cache_name, '110113221101x111113210202.svg')
    self.assertEqual(cache_file_path, cache_dir_path.child(cache_name).absolute())