示例#1
0
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...'   
        
示例#2
0
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'))
示例#3
0
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'))
示例#4
0
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'))
示例#5
0
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'))
示例#6
0
 def setUp(self):
     print "start..."
     self.client = SharkClient('debug')
示例#7
0
 def setUp(self):
     self.client = SharkClient('debug')
示例#8
0
 def setUp(self):
     print "start..."
     self.client = SharkClient('debug')
示例#9
0
 def setUp(self):
     self.client = SharkClient('debug')
     res0 = self.client.login('15011431186')
     print 'start...'
示例#10
0
 def setUp(self):
     self.client = SharkClient('debug')