class TestGet:

    async def test(self, spawn_client, test_job):
        client = await spawn_client()

        await client.db.jobs.insert_one(test_job)

        resp = await client.get("/api/jobs/4c530449")

        assert await resp.json() == {
            "task": "rebuild_index",
            "mem": 16,
            "args": {
                "name": None,
                "analysis_id": "e410429b",
                "sample_id": "1e01a382",
                "username": "igboyes",
                "index_id": "465428b0",
                "algorithm": "nuvs"
            },
            "user": {
                "id": "igboyes"
            },
            "proc": 10,
            "id": "4c530449",
            "status": [
                {
                    "state": "waiting",
                    "error": None,
                    "stage": None,
                    "timestamp": "2017-10-06T20:00:00Z",
                    "progress": 0
                },
                {
                    "state": "running",
                    "error": None,
                    "stage": None,
                    "timestamp": "2017-10-06T20:00:00Z",
                    "progress": 0
                },
                {
                    "state": "running",
                    "error": None,
                    "stage": "mk_analysis_dir",
                    "timestamp": "2017-10-06T20:00:00Z",
                    "progress": 0.091
                },
                {
                    "state": "complete",
                    "error": None,
                    "stage": "import_results",
                    "timestamp": "2017-10-06T20:00:00Z",
                    "progress": 1.0
                }
            ]
        }

    async def test_not_found(self, spawn_client, resp_is):
        client = await spawn_client()

        resp = await client.get("/api/jobs/4c530449")

        assert await resp_is.not_found(resp)

@@ -1,24 +1,67 @@
-class TestGet:%0A%0A    
+import pytest%0A%0A%0A@pytest.mark.parametrize(%22status%22, %5B200, 404%5D)%0A
 asyn
@@ -70,21 +70,27 @@
 def test
-(self
+_get(status
 , spawn_
@@ -105,23 +105,28 @@
 test_job
-):%0A    
+, resp_is):%0A
     clie
@@ -144,32 +144,54 @@
 spawn_client()%0A%0A
+    if status == 200:%0A
         await cl
@@ -225,28 +225,24 @@
 t_job)%0A%0A    
- 
-   
 resp = await
@@ -268,32 +268,143 @@
 obs/4c530449%22)%0A%0A
+    assert resp.status == status%0A%0A    if status == 404:%0A        assert await resp_is.not_found(resp)%0A    else:%0A
         assert a
@@ -1906,20 +1906,17 @@
      %7D%0A%0A
-    
+%0A
 async de
@@ -1926,183 +1926,35 @@
 est_
-not_found(self, spawn_client, resp_is):%0A        client = await spawn_client()%0A%0A        resp = await client.get(%22/api/jobs/4c530449%22)%0A%0A        assert await resp_is.not_found(resp)
+cancel(spawn_client):%0A    pass
 %0A

Format test_jobs.py