class Test_Submit_Comment(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') res0 = self.client.login('15011431186') print 'start...' def test_submit_comment(self): res = self.client.submit_comment('我凑屌啊','good','569efb3cc7949e00015336a4') print res def tearDown(self): print '*****************************************' print 'destroyed...'
class TestArea(unittest.TestCase): def setUp(self): self.client = SharkClient('debug') def test_get_area_list(self): res = self.client.get_area_list(u'北京市') print res self.assertIsNotNone(res.get('areas'))
class TestShopList(unittest.TestCase): def setUp(self): print "start..." self.client = SharkClient('debug') def test_get_shop_list(self): res = self.client.get_shop_list('5680df9038a21241203474f6') print res self.assertIsNotNone(res.get('shops'))
def setUp(self): print "start..." self.client = SharkClient('debug')
def setUp(self): self.client = SharkClient('debug')
def setUp(self): self.client = SharkClient('debug') res0 = self.client.login('15011431186') print 'start...'