# Path: react/react.py
# _DEFINE_GLOBALS_SCRIPT = (
#     'var global = global || this,'
#     'console = console || {'
#     '  warn: function(){},'
#     '  error: function(){},'
#     '  log: function(){},'
#     '  info: function(){}};')


    from unittest.mock import patch
    from mock import patch
from react.react import _DEFINE_GLOBALS_SCRIPT
import unittest
import logging
import collections
import six
import react
# -*- coding: utf-8 -*-

from __future__ import unicode_literals

try:
except ImportError:





logging.disable(logging.CRITICAL)


class ReactTest(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_set_up(self):
        """
        It should call utils.setup
        """
        with patch('react.utils.set_up', autospec=True) as s:
            with patch('react.utils.run_script', autospec=True) as r:
                react.set_up()
                s.assert_called_once_with()

# Path: react/react.py
# _DEFINE_GLOBALS_SCRIPT = (
#     'var global = global || this,'
#     'console = console || {'
#     '  warn: function(){},'
#     '  error: function(){},'
#     '  log: function(){},'
#     '  info: function(){}};')


# Path: tests/tests_react.py
    from unittest.mock import patch
    from mock import patch
from react.react import _DEFINE_GLOBALS_SCRIPT
import unittest
import logging
import collections
import six
import react

# -*- coding: utf-8 -*-

from __future__ import unicode_literals

try:
except ImportError:





logging.disable(logging.CRITICAL)


class ReactTest(unittest.TestCase):

    def setUp(self):
        pass

    def tearDown(self):
        pass

    def test_set_up(self):
        """
        It should call utils.setup
        """
        with patch('react.utils.set_up', autospec=True) as s:
            with patch('react.utils.run_script', autospec=True) as r:
                react.set_up()
                s.assert_called_once_with()

                r.assert_called_once_with(_DEFINE_GLOBALS_SCRIPT)