コード例 #1
0
 def test_normalize_meta_invalid_2(self):
     try:
         MetaService.normalize_meta(self.ncc._get_capabilities(), None)
     except YPYServiceError as err:
         expected_msg = "'capabilities' and 'entity' cannot be None"
         self.assertEqual(err.message, expected_msg)
     else:
         raise Exception('YPYServiceError not raised')
コード例 #2
0
 def test_normalize_meta_invalid_3(self):
     try:
         runner = ysanity.Runner()
         MetaService.normalize_meta(None, None)
     except YPYServiceError as err:
         expected_msg = "'capabilities' and 'entity' cannot be None"
         self.assertEqual(err.message, expected_msg)
     else:
         raise Exception('YPYServiceError not raised')