def test_binary_battery_plots(self):
    ' Test plotting binary hull. '
    expected_files = ['KP_hull.png', 'KP_voltage.png', 'KP_volume.png']
    cursor = res2dict((REAL_PATH + 'data/hull-KP-KSnP_pub/*.res'))[0]
    QueryConvexHull(cursor=cursor, elements=['K', 'P'], no_plot=False, png=True, quiet=False, voltage=True, labels=True, label_cutoff=0.05, hull_cutoff=0.1, volume=True, plot_kwargs={'colour_by_source': True})
    for expected_file in expected_files:
        self.assertTrue(os.path.isfile(expected_file))
Test plotting binary hull.
def test_binary_battery_plots(self):
    '  '
    expected_files = ['KP_hull.png', 'KP_voltage.png', 'KP_volume.png']
    cursor = res2dict((REAL_PATH + 'data/hull-KP-KSnP_pub/*.res'))[0]
    QueryConvexHull(cursor=cursor, elements=['K', 'P'], no_plot=False, png=True, quiet=False, voltage=True, labels=True, label_cutoff=0.05, hull_cutoff=0.1, volume=True, plot_kwargs={'colour_by_source': True})
    for expected_file in expected_files:
        self.assertTrue(os.path.isfile(expected_file))