def test_delete_process(self):
     added_process = testhelpers.add_process(self.db)
     response = self.webapp_request("/data/processes", method="DELETE", id=added_process.id)
     print response.body
     processes = self.db.get_processes()
     self.assertEqual(processes.count(), 0)
 def test_get_processes(self):
     testhelpers.add_process(self.db)
     data = self.dataservice.processes()
     # print data
     jsonobj = json.loads(data)
     self.assertTrue(len(jsonobj) > 0)