Commits

Anonymous committed bc56e7b

added test: correctly handles numbers.

Comments (0)

Files changed (1)

     [{'path': 'KSK@gpl.txt', 'description': 'The GNU General Public License. The most widespread license for free software.'}, {'path': 'KSK@rogar.txt', 'description': 'Rogar, the barbarian.'}]
     >>> list(states)
     []
-    >>> infinite_hands = {'path': '/Infinite_Hands/5/', 'description': 'singing a part of the history of free software.'}
+    >>> infinite_hands = {'path': '/Infinite_Hands/5/', 'description': 'singing a part of the history of free software.', 'randomint': 5}
     >>> put_data_for_key("USK@N7dmVKbxm5Q9YIzg74T1gUJd96eyAa2VLoMlPp0CQQs,AfZRxhqkvql5E~hDcW1s0mtHTAKrkhWpfcRm2kqkUjE,AQACAAE" + infinite_hands["path"], site=infinite_hands, sites_dir="test_sites", states_dir="test_states")
     >>> get_data_for_key("USK@N7dmVKbxm5Q9YIzg74T1gUJd96eyAa2VLoMlPp0CQQs,AfZRxhqkvql5E~hDcW1s0mtHTAKrkhWpfcRm2kqkUjE,AQACAAE" + infinite_hands["path"], sites_dir="test_sites", states_dir="test_states")
-    ({'path': '/Infinite_Hands/5/', 'description': 'singing a part of the history of free software.'}, {})
+    ({'path': '/Infinite_Hands/5/', 'description': 'singing a part of the history of free software.', 'randomint': 5}, {})
     """
 
     # make sure the data folders exist.