def test_multiseed(self):
    ' Test plotting two seed bandstructures on top of each other. '
    os.chdir((REAL_PATH + '/data/bands_files'))
    expected_file = 'KPSn_spectral.png'
    sys.argv = ['dispersion', 'KPSn', 'KPSn_2', '--dos_only', '--cmap', 'viridis', '--png', '--band_reorder', '--labels', 'PBE, LDA', '--figsize', '10', '10', '--colours', 'green', 'red']
    errored = False
    try:
        matador.cli.dispersion.main()
    except Exception as exc:
        errored = True
        error = exc
    file_exists = os.path.isfile(expected_file)
    if file_exists:
        os.remove(expected_file)
    os.chdir(ROOT_DIR)
    if errored:
        raise error
    self.assertTrue(file_exists)
Test plotting two seed bandstructures on top of each other.
def test_multiseed(self):
    '  '
    os.chdir((REAL_PATH + '/data/bands_files'))
    expected_file = 'KPSn_spectral.png'
    sys.argv = ['dispersion', 'KPSn', 'KPSn_2', '--dos_only', '--cmap', 'viridis', '--png', '--band_reorder', '--labels', 'PBE, LDA', '--figsize', '10', '10', '--colours', 'green', 'red']
    errored = False
    try:
        matador.cli.dispersion.main()
    except Exception as exc:
        errored = True
        error = exc
    file_exists = os.path.isfile(expected_file)
    if file_exists:
        os.remove(expected_file)
    os.chdir(ROOT_DIR)
    if errored:
        raise error
    self.assertTrue(file_exists)