Commit 2c239f9e authored by Conor Finn's avatar Conor Finn
Browse files

RE #27722 autopep8 E302 Expected blank lines

parent 4e16602f
......@@ -8,6 +8,7 @@ import unittest
from mantid.api import (WorkspaceFactory, WorkspaceFactoryImpl, MatrixWorkspace,
ITableWorkspace, IPeaksWorkspace)
class WorkspaceFactoryTest(unittest.TestCase):
......
......@@ -15,6 +15,7 @@ from mantid.api import (WorkspaceProperty, WorkspaceGroupProperty, MatrixWorkspa
PropertyMode, LockMode)
from mantid.kernel import Direction, Property
class WorkspacePropertiesTest(unittest.TestCase):
def _do_test(self, classtype):
......
......@@ -8,6 +8,7 @@ import unittest
from testhelpers import run_algorithm
from mantid.api import Workspace
class WorkspaceTest(unittest.TestCase):
def test_that_one_cannot_be_instantiated(self):
......
......@@ -16,6 +16,7 @@ from mantid.api import (WorkspaceUnitValidator, HistogramValidator,
InstrumentValidator, MDFrameValidator,
OrientedLatticeValidator)
class WorkspaceValidatorsTest(unittest.TestCase):
def test_WorkspaceUnitValidator_construction(self):
......
......@@ -14,6 +14,7 @@ from mantid.dataobjects import EventList
gps_epoch_plus_42_nanoseconds = np.datetime64('1990-01-01T00:00:00.000000042Z', 'ns')
class EventListTest(unittest.TestCase):
def createRandomEventList(self, length):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.geometry import BoundingBox
from mantid.kernel import V3D
class BoundingBoxTest(unittest.TestCase):
def test_default_construction_is_allowed(self):
......
......@@ -14,6 +14,7 @@ from mantid.geometry import CSGObject
from mantid.simpleapi import *
from itertools import islice
class ComponentInfoTest(unittest.TestCase):
_ws = None
......
......@@ -11,6 +11,7 @@ from testhelpers import can_be_instantiated
from testhelpers import run_algorithm
import numpy as np
class GoniometerTest(unittest.TestCase):
def test_Goniometer_can_be_instantiated(self):
......
......@@ -8,6 +8,7 @@ import unittest
from testhelpers import can_be_instantiated
from mantid.geometry import IComponent
class IComponentTest(unittest.TestCase):
def test_IComponent_cannot_be_instantiated(self):
......
......@@ -10,6 +10,7 @@ from mantid.geometry import OrientedLattice, UnitCell
from mantid.kernel import V3D
import numpy as np
class OrientedLatticeTest(unittest.TestCase):
def test_OrientedLattice_is_subclass_of_UnitCell(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.simpleapi import CreatePeaksWorkspace, CreateSampleWorkspace
from mantid.geometry import PeakShape
class PeakShapeTest(unittest.TestCase):
def test_basic_access(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.geometry import *
from testhelpers import can_be_instantiated, WorkspaceCreationHelper
class RectangularDetectorTest(unittest.TestCase):
def test_RectangularDetector_cannot_be_instantiated(self):
......
......@@ -7,6 +7,7 @@
import unittest
from mantid.geometry import ReferenceFrame
class ReferenceFrameTest(object):
def test_ReferenceFrame_cannot_be_instantiated(self):
self.assertFalse(can_be_instantiated(Instrument))
......
......@@ -9,6 +9,7 @@ from mantid.geometry import SymmetryOperation, SymmetryOperationFactory
from mantid.geometry import SymmetryElement, SymmetryElementFactory
from mantid.kernel import V3D
class SymmetryElementTest(unittest.TestCase):
def test_creation_axis(self):
......
......@@ -8,6 +8,7 @@ import unittest
from mantid.geometry import SymmetryOperation, SymmetryOperationFactory
from mantid.kernel import V3D
class SymmetryOperationTest(unittest.TestCase):
def test_creation(self):
......
......@@ -10,6 +10,7 @@ from mantid.geometry import UnitCell, AngleUnits
from mantid.kernel import V3D
import numpy as np
class UnitCellTest(unittest.TestCase):
def test_invalid_parameters_throw(self):
......
......@@ -10,6 +10,7 @@ import testhelpers
from mantid.kernel import FloatArrayBoundedValidator, FloatArrayProperty
from mantid.api import PythonAlgorithm
class ArrayBoundedValidatorTest(unittest.TestCase):
def test_empty_constructor_gives_no_lower_upper_bound_set(self):
......
......@@ -10,6 +10,7 @@ import testhelpers
from mantid.kernel import FloatArrayLengthValidator, FloatArrayProperty
from mantid.api import PythonAlgorithm
class ArrayLengthValidatorTest(unittest.TestCase):
def test_empty_constructor_has_no_lengths_set(self):
......
......@@ -13,6 +13,7 @@ from mantid.api import PythonAlgorithm
import numpy as np
import sys
class ArrayPropertyTest(unittest.TestCase):
def test_default_constructor_raises_an_exception(self):
......
......@@ -8,6 +8,7 @@ import unittest
import testhelpers
from mantid.kernel import FloatBoundedValidator, IntBoundedValidator
class BoundedValidatorTest(unittest.TestCase):
def test_construction_does_not_raise_error_when_both_are_floats(self):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment