comparison tests/test_configuration.py @ 3:f485ba500df3

Gigantic change to basically make PieCrust 2 vaguely functional. - Serving works, with debug window. - Baking works, multi-threading, with dependency handling. - Various things not implemented yet.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 10 Aug 2014 23:43:16 -0700
parents 40fa08b261b9
children 563ce5dd02af
comparison
equal deleted inserted replaced
2:40fa08b261b9 3:f485ba500df3
12 assert config.get() == expected 12 assert config.get() == expected
13 13
14 14
15 def test_config_set_all(): 15 def test_config_set_all():
16 config = Configuration() 16 config = Configuration()
17 config.set_all({'foo': 'bar'}) 17 config.setAll({'foo': 'bar'})
18 assert config.get() == {'foo': 'bar'} 18 assert config.get() == {'foo': 'bar'}
19 19
20 20
21 def test_config_get_and_set(): 21 def test_config_get_and_set():
22 config = Configuration({'foo': 'bar', 'answer': 42}) 22 config = Configuration({'foo': 'bar', 'answer': 42})
101 'child10': 'ten' 101 'child10': 'ten'
102 } 102 }
103 } 103 }
104 assert config.get() == expected 104 assert config.get() == expected
105 105
106