예제 #1
0
파일: braintest.py 프로젝트: 0x1001/jarvis
class BrainTest(unittest.TestCase):
    def setUp(self):
        from neural import Brain

        self.br = Brain()

    def test_learn(self):
        from neural import BrainException

        with self.assertRaises(BrainException):
            self.br.learn(None)

    def test_configure(self):
        from neural import BrainException

        with self.assertRaises(BrainException):
            self.br.configure()

    def test_think(self):
        from neural import BrainException

        with self.assertRaises(BrainException):
            self.br.think(None)
예제 #2
0
파일: braintest.py 프로젝트: 0x1001/jarvis
    def setUp(self):
        from neural import Brain

        self.br = Brain()