예제 #1
0
 def tearDown(self):
     policy.reset()
예제 #2
0
 def test_reset(self):
     # Make sure the rules are reset
     policy._rules = 'spam'
     policy.reset()
     self.assertEqual(policy._rules, None)
예제 #3
0
 def test_reset(self):
     # Make sure the brain is set to something
     policy._BRAIN = 'spam'
     policy.reset()
     self.assertEqual(policy._BRAIN, None)
예제 #4
0
def reset():
    global _POLICY_PATH
    global _POLICY_CACHE
    _POLICY_PATH = None
    _POLICY_CACHE = {}
    policy.reset()
예제 #5
0
 def test_reset(self):
     # Make sure the rules are reset
     policy._rules = 'spam'
     policy.reset()
     self.assertEqual(policy._rules, None)
예제 #6
0
 def tearDown(self):
     policy.reset()
예제 #7
0
 def test_reset(self):
     # Make sure the brain is set to something
     policy._BRAIN = 'spam'
     policy.reset()
     self.assertEqual(policy._BRAIN, None)
예제 #8
0
def reset():
    global _POLICY_PATH
    global _POLICY_CACHE
    _POLICY_PATH = None
    _POLICY_CACHE = {}
    policy.reset()