Esempio n. 1
0
 def test_active_layer_none(self):
     assert get_active_layer({}, [lambda x: None]) is None
Esempio n. 2
0
 def test_active_layer_second(self):
     assert get_active_layer({}, [lambda x: None, lambda x: 'layer2']) == 'layer2'
Esempio n. 3
0
 def test_active_layer_trivial(self):
     assert get_active_layer({}, [lambda x: 'layer2']) == 'layer2'
Esempio n. 4
0
 def test_active_layer_none(self):
     assert get_active_layer({}, [lambda x: None]) is None
Esempio n. 5
0
 def test_active_layer_second(self):
     assert get_active_layer(
         {}, [lambda x: None, lambda x: 'layer2']) == 'layer2'
Esempio n. 6
0
 def test_active_layer_trivial(self):
     assert get_active_layer({}, [lambda x: 'layer2']) == 'layer2'