# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright &copy; 2021 ISIS Rutherford Appleton Laboratory UKRI,
#     NScD Oak Ridge National Laboratory, European Spallation Source
#     & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
import unittest
from unittest import mock

from mantidqt.gui_helper import get_qapplication

# yapf: disable
from mantidqtinterfaces.DNSReduction.data_structures.dns_widget import DNSWidget
from mantidqtinterfaces.DNSReduction.script_generator.common_script_generator_view import \
    DNSScriptGeneratorView
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_model \
    import DNSElasticPowderScriptGeneratorModel  # yapf: disable
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_presenter\
    import DNSElasticPowderScriptGeneratorPresenter  # yapf: disable
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_widget \
    import DNSElasticPowderScriptGeneratorWidget

# yapf: enable
app, within_mantid = get_qapplication()


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
                              DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
                              DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
                              DNSElasticPowderScriptGeneratorPresenter)


if __name__ == '__main__':
    unittest.main()

721afb5c1a9427dc2c56d16e34a02f51c1035b77
<mask token>


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
            DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
            DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
            DNSElasticPowderScriptGeneratorPresenter)


<mask token>

<mask token>


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
            DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
            DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
            DNSElasticPowderScriptGeneratorPresenter)


if __name__ == '__main__':
    unittest.main()

<mask token>
app, within_mantid = get_qapplication()


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
            DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
            DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
            DNSElasticPowderScriptGeneratorPresenter)


if __name__ == '__main__':
    unittest.main()

import unittest
from unittest import mock
from mantidqt.gui_helper import get_qapplication
from mantidqtinterfaces.DNSReduction.data_structures.dns_widget import DNSWidget
from mantidqtinterfaces.DNSReduction.script_generator.common_script_generator_view import DNSScriptGeneratorView
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_model import DNSElasticPowderScriptGeneratorModel
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_presenter import DNSElasticPowderScriptGeneratorPresenter
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_widget import DNSElasticPowderScriptGeneratorWidget
app, within_mantid = get_qapplication()


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):

    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
            DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
            DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
            DNSElasticPowderScriptGeneratorPresenter)


if __name__ == '__main__':
    unittest.main()

# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright &copy; 2021 ISIS Rutherford Appleton Laboratory UKRI,
#     NScD Oak Ridge National Laboratory, European Spallation Source
#     & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
import unittest
from unittest import mock

from mantidqt.gui_helper import get_qapplication

# yapf: disable
from mantidqtinterfaces.DNSReduction.data_structures.dns_widget import DNSWidget
from mantidqtinterfaces.DNSReduction.script_generator.common_script_generator_view import \
    DNSScriptGeneratorView
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_model \
    import DNSElasticPowderScriptGeneratorModel  # yapf: disable
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_presenter\
    import DNSElasticPowderScriptGeneratorPresenter  # yapf: disable
from mantidqtinterfaces.DNSReduction.script_generator.elastic_powder_script_generator_widget \
    import DNSElasticPowderScriptGeneratorWidget

# yapf: enable
app, within_mantid = get_qapplication()


class DNSElasticPowderScriptGeneratorWidgetTest(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        parent = mock.Mock()
        parent.view = None
        cls.widget = DNSElasticPowderScriptGeneratorWidget(
            'elastic_powder_options', parent)

    def test___init__(self):
        self.assertIsInstance(self.widget,
                              DNSElasticPowderScriptGeneratorWidget)
        self.assertIsInstance(self.widget, DNSWidget)
        self.assertIsInstance(self.widget.view, DNSScriptGeneratorView)
        self.assertIsInstance(self.widget.model,
                              DNSElasticPowderScriptGeneratorModel)
        self.assertIsInstance(self.widget.presenter,
                              DNSElasticPowderScriptGeneratorPresenter)


if __name__ == '__main__':
    unittest.main()
