Commits

Marc Kirkwood  committed 70a1475

Changed assertions to expect raw ints (not unicode strings).

  • Participants
  • Parent commits d050210

Comments (0)

Files changed (1)

File tests/test_url_helper.py

     def test_update_query_data(self):
         u = UrlHelper('/foo?foo=1&bar=2')
         u.update_query_data(foo=2)
-        self.assertEqual(u.get_query_data()['foo'], '2')
+        self.assertEqual(u.get_query_data()['foo'], 2)
 
     def test_update_query_data_with_multiple_values(self):
         u = UrlHelper('/foo?foo=1&bar=2')
-        u.update_query_data(foo=[1,2,3])
-        self.assertEqual(u.get_query_data()['foo'], '3')
-        self.assertEqual(u.get_query_data().getlist('foo'), ['1', '2', '3'])
+        u.update_query_data(foo=[1, 2, 3])
+        self.assertEqual(u.get_query_data()['foo'], 3)
+        self.assertEqual(u.get_query_data().getlist('foo'), [1, 2, 3])
 
     def test_update_query_data_with_correct_escaping(self):
         u = UrlHelper('/foo?foo=1&bar=2')
     def test_query_setter(self):
         u = UrlHelper('/foo')
         u.query = dict(foo=1)
-        self.assertEqual(u.query['foo'], '1')
+        self.assertEqual(u.query['foo'], 1)
 
     def test_query_setter_with_string(self):
         u = UrlHelper('/foo')