anki-connect/tests/test_misc.py

11 lines
274 B
Python
Raw Normal View History

2017-08-29 04:21:32 +00:00
# -*- coding: utf-8 -*-
import unittest
from unittest import TestCase
from util import callAnkiConnectEndpoint
class TestVersion(TestCase):
def test_version(self):
response = callAnkiConnectEndpoint({'action': 'version'})
2017-12-22 21:42:49 +00:00
self.assertEqual(5, response)