summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcat <cat@eee>2010-02-12 22:57:41 -0500
committercat <cat@eee>2010-02-12 22:57:41 -0500
commit3e926068202f9901a85d267eb29306f7881e9fae (patch)
tree4e4633a1d7f1878b57c8a7cf53334b162e89b451
parent0d43627fd68908aa83bda63506b755f308dd38a5 (diff)
downloadcmd2-hg-3e926068202f9901a85d267eb29306f7881e9fae.tar.gz
unit tests fixed
-rwxr-xr-xcmd2.py6
-rw-r--r--docs/unfreefeatures.rst2
2 files changed, 5 insertions, 3 deletions
diff --git a/cmd2.py b/cmd2.py
index 9311689..a406fb3 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -281,10 +281,10 @@ class StubbornDict(dict):
[('large', 'gross'), ('small', 'klein')]
>>> d.append(['plain', ' plaid'])
>>> sorted(d.items())
- [('large', 'gross'), ('plaid', None), ('plain', None), ('small', 'klein')]
+ [('large', 'gross'), ('plaid', ''), ('plain', ''), ('small', 'klein')]
>>> d += ' girl Frauelein, Maedchen\\n\\n shoe schuh'
>>> sorted(d.items())
- [('girl', 'Frauelein, Maedchen'), ('large', 'gross'), ('plaid', None), ('plain', None), ('shoe', 'schuh'), ('small', 'klein')]
+ [('girl', 'Frauelein, Maedchen'), ('large', 'gross'), ('plaid', ''), ('plain', ''), ('shoe', 'schuh'), ('small', 'klein')]
'''
def update(self, arg):
dict.update(self, StubbornDict.to_dict(arg))
@@ -327,7 +327,7 @@ def stubbornDict(*arg, **kwarg):
>>> sorted(stubbornDict('cow a bovine\\nhorse an equine').items())
[('cow', 'a bovine'), ('horse', 'an equine')]
>>> sorted(stubbornDict(['badger', 'porcupine a poky creature']).items())
- [('badger', None), ('porcupine', 'a poky creature')]
+ [('badger', ''), ('porcupine', 'a poky creature')]
>>> sorted(stubbornDict(turtle='has shell', frog='jumpy').items())
[('frog', 'jumpy'), ('turtle', 'has shell')]
'''
diff --git a/docs/unfreefeatures.rst b/docs/unfreefeatures.rst
index e341fc3..dc30f63 100644
--- a/docs/unfreefeatures.rst
+++ b/docs/unfreefeatures.rst
@@ -212,3 +212,5 @@ to read. ``quiet`` is only relevant if
Sauce? 2
wheaties with salty sauce, yum!
+``color``
+=========