Beispiel #1
0
 def test_delete_rule(self):
     self.r = Parser.parse('create rule test_for_delete on game_play award 5 points')
     RuleList.add( self.r )
     RuleList.delete_rule('test_for_delete')
     RuleList.load_rules()
     with self.assertRaises(RuleDoesNotExistException):
         RuleList.delete_rule('test_for_delete')
Beispiel #2
0
 def setUp(self):
     self.r = Parser.parse('create rule test on game_play award 5 points')