X-Git-Url: https://gerrit.onap.org/r/gitweb?p=modeling%2Fetsicatalog.git;a=blobdiff_plain;f=genericparser%2Fsamples%2Ftests.py;h=81ef49a1c35eed6e933bba56197ac7e9634624de;hp=9e4c0279664f9973f83c8aba6ebbeadec862a76f;hb=52a969dcc2a935930a559b1780d7c95e1cc45d73;hpb=63c392e9cca3c6654e8383f49e5136fa86d1c72a diff --git a/genericparser/samples/tests.py b/genericparser/samples/tests.py index 9e4c027..81ef49a 100644 --- a/genericparser/samples/tests.py +++ b/genericparser/samples/tests.py @@ -31,3 +31,15 @@ class SampleViewTest(unittest.TestCase): self.assertEqual(status.HTTP_200_OK, response.status_code, response.content) resp_data = json.loads(response.content) self.assertEqual({"status": "active"}, resp_data) + + +class CallbackSampleTest(unittest.TestCase): + def setUp(self): + self.client = Client() + + def tearDown(self): + pass + + def test_callback(self): + response = self.client.get("/api/genericparser/v1/callback_sample") + self.assertEqual(status.HTTP_204_NO_CONTENT, response.status_code, response.content)