Esempio n. 1
0
 def test_get_table(self):
     """
     Test ConcreteAccCtrlRule create table function
     """
     node_id1 = '102'
     node1 = Node(node_id1)
     concreteAccCtrlRule1 = ConcreteAccCtrlRule(node1)
     node_id2 = '102'
     node2 = Node(node_id2)
     concreteAccCtrlRule2 = ConcreteAccCtrlRule(node2)
     concreteAccCtrlRules = [concreteAccCtrlRule1, concreteAccCtrlRule2]
     self.assertTrue(
         isinstance(
             ConcreteAccCtrlRule.get_table(concreteAccCtrlRules)[0],
             Table))
Esempio n. 2
0
 def test_get_parent_class(self):
     """
     Ensure class has the correct parent class
     """
     self.assertEquals(ConcreteAccCtrlRule._get_parent_class(), Node)