/+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-08-23 06:46:04 UTC
  • Revision ID: git-v1:df4fb7845ec5ed0e89d6b485a0c6babd75ac5ff3
 - Bug fixed when automatic scaling is on and None values are in a data set (#5) (Alec Thomas)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
            warnings.simplefilter('ignore')
33
33
 
34
34
    def assertChartURL(self, url, query):
35
 
        return url.endswith(query)
 
35
        self.assertTrue(url.endswith(query))
36
36
 
37
37
 
38
38
class TestDataTypes(TestBase):
98
98
        self.assertRaises(UserWarning, sv, 30, [0, 1])
99
99
 
100
100
 
101
 
class TestChartQR(TestBase):
 
101
class TestLineChart(TestBase):
 
102
 
 
103
    def test_none_data(self):
 
104
        chart = gc.SimpleLineChart(300, 100)
 
105
        chart.add_data([1, 2, 3, None, 5])
 
106
        self.assertChartURL(chart.get_url(), \
 
107
            '?cht=lc&chs=300x100&chd=e:KrVVgA__1V')
 
108
 
 
109
class TestQRChart(TestBase):
102
110
 
103
111
    def assertQRImage(self, chart, text):
104
112
        try: