Exemple #1
0
 def test_udefinded_method_with_base_node(self):
     self.assertRaises(
         AttributeError, lambda: Number(self.number).addElement(BaseNode()))
Exemple #2
0
 def test_call_udefinded_method_with_base_node(self):
     self.assertRaises(AttributeError,
                       lambda: Record(self.name).addElement(BaseNode()))
 def test_udefinded_method_with_base_node(self):
     self.assertRaises(AttributeError,
                       lambda: Redirect(self.url).addElement(BaseNode()))
Exemple #4
0
 def test_udefinded_method_with_base_node(self):
     """test calling undefined method"""
     self.assertRaises(AttributeError,
                       lambda: Sip(self.address).addElement(BaseNode()))