Exemple #1
0
class TestTemplate(unittest.TestCase):

    def setUp(self):
        self.surl = SUrl()
        self.test_url = 'http://www.test.com'

    # def tearDown(self):
    #     self.remove(test_url)

    def test_add(self):
        print self.surl.add('http://blibb.net')
        print self.surl.add(self.test_url)

    def test_get(self):
        print self.surl.get('VEMf4')
Exemple #2
0
 def setUp(self):
     self.surl = SUrl()
     self.test_url = 'http://www.test.com'