[kernel] r9399 - people/waldi/dkt/lib/dkt/config/test
Bastian Blank
waldi at alioth.debian.org
Tue Aug 28 19:23:12 UTC 2007
Author: waldi
Date: Tue Aug 28 19:23:12 2007
New Revision: 9399
Log:
lib/dkt/config/test/test_file.py: Update.
Modified:
people/waldi/dkt/lib/dkt/config/test/test_file.py
Modified: people/waldi/dkt/lib/dkt/config/test/test_file.py
==============================================================================
--- people/waldi/dkt/lib/dkt/config/test/test_file.py (original)
+++ people/waldi/dkt/lib/dkt/config/test/test_file.py Tue Aug 28 19:23:12 2007
@@ -26,8 +26,24 @@
c = Config(StringIO(config1))
def test_a():
+ assert c.get('a', '__type__') == 'a'
+ assert c.get('a', '__name__') == 'a'
assert c.get_section('a') == {'a': 'b', 'a-b': 'c'}
+def test_b_1():
+ assert c.get_section('b:1') == {'a1': 'b', 'a2': 'b', 'a3': 'b', 'a4': 'b'}
+ assert c.get('b:1', '__type__') == 'b'
+ assert c.get('b:1', '__name__') == 'b:1'
+
+def test_b_2():
+ assert c.get_section('b:2') == {'a': '\nb\nc'}
+
+def test_b_3():
+ assert c.get_section('b:3') == {}
+
+def test_b_4():
+ assert c.get_section('b:4') == {}
+
def test_sections():
assert c.sections() == ['a', 'b:1', 'b:2', 'b:3', 'b:4']
More information about the Kernel-svn-changes
mailing list