/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to test/test.py

  • Committer: gak
  • Date: 2008-09-11 23:52:02 UTC
  • Revision ID: git-v1:1f3559184c106bcd2ec18a65cd3f7f8c06beca53
 - Few fixes for python 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
sys.path.insert(0, ROOT)
12
12
 
13
13
import pygooglechart as gc
14
 
from pygooglechart import NoDataGivenException
15
14
 
16
15
 
17
16
class TestBase(unittest.TestCase):
142
141
 
143
142
    def test_no_data(self):
144
143
        chart = gc.QRChart(100, 100)
145
 
        self.assertRaises(NoDataGivenException, chart.get_url)
 
144
        self.assertRaises(gc.NoDataGivenException, chart.get_url)
146
145
 
147
146
    def test_validate_image(self):
148
147
        text = 'Hello World'