Example #1
0
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser('some_unknown_kernel')
     self.assertTrue(parser.is_api_cell('# GET /yes'), 'API cell was not detected')
     self.assertFalse(parser.is_api_cell('no'), 'API cell was not detected')
Example #2
0
 def test_is_api_cell(self):
     """Parser should correctly identify annotated API cells."""
     parser = APICellParser("some_unknown_kernel")
     self.assertTrue(parser.is_api_cell("# GET /yes"), "API cell was not detected")
     self.assertFalse(parser.is_api_cell("no"), "API cell was not detected")