Beispiel #1
0
 def test_define_all_reject_missing_values(self):
     env = Environment()
     with self.assertRaises(ValueError):
         env.define_each(["a", "b", "c"], [1, 2])
Beispiel #2
0
 def test_define_all_reject_missing_values(self):
     env = Environment()
     with self.assertRaises(ValueError):
         env.define_each(["a", "b", "c"], [1, 2])
Beispiel #3
0
    def test_define_all_symbols(self):
        env = Environment()
        env.define_each(["a", "b", "c"], [1, 2, 3])

        self.verify_all_bindings(env, {"a": 1, "b": 2, "c": 3})
Beispiel #4
0
    def test_define_all_symbols(self):
        env = Environment()
        env.define_each(["a", "b", "c"], [1, 2, 3])

        self.verify_all_bindings(env, {"a": 1, "b": 2, "c": 3})