3
# Copyright (C) 2011 Julian Andres Klode <jak@debian.org>
5
# Copying and distribution of this file, with or without modification,
6
# are permitted in any medium without royalty provided the copyright
7
# notice and this notice are preserved.
8
"""Unit tests for verifying the correctness of apt_pkg.Configuration"""
15
class TestConfiguration(testcommon.TestCase):
16
"""Test various configuration things"""
18
def test_lp707416(self):
19
"""configuration: Test empty arguments (LP: #707416)"""
20
self.assertRaises(ValueError, apt_pkg.parse_commandline,
21
apt_pkg.config, [], [])
22
self.assertRaises(SystemError, apt_pkg.parse_commandline,
23
apt_pkg.config, [], ["cmd", "--arg0"])
26
if __name__ == "__main__":