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...'   
        
Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #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'))
Exemple #6
0
 def setUp(self):
     print "start..."
     self.client = SharkClient('debug')
Exemple #7
0
 def setUp(self):
     self.client = SharkClient('debug')
Exemple #8
0
 def setUp(self):
     print "start..."
     self.client = SharkClient('debug')
 def setUp(self):
     self.client = SharkClient('debug')
     res0 = self.client.login('15011431186')
     print 'start...'
Exemple #10
0
 def setUp(self):
     self.client = SharkClient('debug')