Пример #1
0
    def test_init(self):
        config = BrainDynamicsConfiguration()
        map = DynamicMap(config)
        self.assertIsNotNone(map)
        self.assertIsNotNone(map.config)
        self.assertEqual(config, map.config)

        with self.assertRaises(Exception):
            map.map_value(None, None)
Пример #2
0
    def test_init(self):
        config = BrainDynamicsConfiguration()
        var = DynamicVariable(config)
        self.assertIsNotNone(var)
        self.assertIsNotNone(var.config)
        self.assertEqual(config, var.config)

        with self.assertRaises(Exception):
            var.get_value(None, None, None)
Пример #3
0
    def test_init(self):
        config = BrainDynamicsConfiguration()
        set = DynamicSet(config)
        self.assertIsNotNone(set)
        self.assertIsNotNone(set.config)
        self.assertEqual(config, set.config)

        with self.assertRaises(Exception):
            set.is_member(None, None)