Skip to content

Commit

Permalink
test code added
Browse files Browse the repository at this point in the history
  • Loading branch information
bowen1993 committed Sep 19, 2015
1 parent 0bb9229 commit c7f2df1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 11 additions & 0 deletions design/tests.py
Expand Up @@ -600,6 +600,17 @@ def test_2_2(self):
expectResult = 20.0
isTrue = expectResult - result < 0.0001
self.assertTrue(isTrue,"calA")
self.client = Client()
self.lenResponse = self.client.get('/home/get?partname=BBa_B0010')
self.lenResponse = self.client.get('/home/getChainList?id=1')
self.lenResponse = self.client.get('/home/getProject?id=1')
self.lenResponse = self.client.get('/home/getUserProject')

self.lenResponse = self.client.post('/home/changeProjectname', {'id':1, 'name':'new'})
self.lenResponse = self.client.post('/home/changeTrack', {'id':1, 'track_id':1})
self.lenResponse = self.client.post('/home/deleteProject', {'id':1, })
self.lenResponse = self.client.get('/home/getTrackFunctions?track_id=1')
self.lenResponse = self.client.get('/home/getResultImage?id=1')

#test calA0 from simulation.py
def test_3_1(self):
Expand Down
6 changes: 4 additions & 2 deletions system/tests.py
Expand Up @@ -71,6 +71,8 @@ def test_normal(self):
self.gr.get_graph()
class testSystemView(TestCase):
def setUp(self):
pass
self.client = Client()
def test_normal(self):
pass
self.client.post('/system/related',{'id':'C00002'})
self.client.get('/system/getGene',{'id':'100008683'})
self.client.get('/system/getCompound',{'id':'C00002'})

0 comments on commit c7f2df1

Please sign in to comment.