Commits

Mikhail Korobov  committed abdb487

test for the unicode encoding bug

  • Participants
  • Parent commits f953826

Comments (0)

Files changed (1)

File vkontakte/tests.py

         _get.assert_called_once_with('friends.get', uid=642177)
 
 
+    @mock.patch('vkontakte.http.post')
+    def test_urlencode_bug(self, post):
+        post.return_value = 200, '{"response":123}'
+        res = self.api.search(q=u'клен')
+        self.assertEqual(res, 123)
+
+
+
 if __name__ == '__main__':
     unittest.main()