WorkspaceTest.py 755 Bytes
Newer Older
1
2
3
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
5
#   NScD Oak Ridge National Laboratory, European Spallation Source,
#   Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
# SPDX - License - Identifier: GPL - 3.0 +
7
8
import unittest
from testhelpers import run_algorithm
9
from mantid.api import Workspace
10

11

12
class WorkspaceTest(unittest.TestCase):
13

14
15
16
17
18
19
20
    def test_that_one_cannot_be_instantiated(self):
        try:
            Workspace()
            error = False
        except RuntimeError: # For some reason self.assertRaises doesn't catch this
            error = True
        self.assertTrue(error, True)
21
22

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