• File: test_example.py
  • Full Path: /home/masbinta/public_html/admin/installer/css/sass/sym404/root/usr/local/lib/python3.6/site-packages/qrcode/tests/test_example.py
  • File size: 250 bytes
  • MIME-type: text/x-python
  • Charset: utf-8
import unittest
from unittest import mock

from qrcode import run_example


class ExampleTest(unittest.TestCase):

    @mock.patch('PIL.Image.Image.show')
    def runTest(self, mock_show):
        run_example()
        mock_show.assert_called_with()