def test_3_1(self): "test calA0 from simulation.py" result = self.rs.calA0() expectResult = 24.0 isTrue = expectResult - result < 0.0001 self.assertTrue(isTrue,"calA0") self.rs.doReaction(1) self.rs.doSimulation() self.rs.form_result() self.rs.getProcess() getPartNameAndType("603") getMarkovRecommend("603") getPart("BBa_C0062") #ambiguousSearch("603",None) get_func_parts([1,2,3])
def getMRecommend(request): part_id = request.GET.get('part') return HttpResponse(json.dumps(getMarkovRecommend(part_id)), content_type="application/json")
def test_MarkovRecommend(self): self.result = getMarkovRecommend(self.partId) self.assertEqual(self.result, [])
def test_MarkovRecommend(self): self.result = getMarkovRecommend(self.partId) self.isGet = self.result['isSuccessful'] self.assertEqual(self.isGet, False)