Deleted out-of-date tests

parent 7816eae9
......@@ -57,23 +57,3 @@ class TestAsianCarpEggs(TestCase):
3600 # convert to s
self.assertAlmostEqual(expected_hatching_time, self._hatching_time)
def test_diameter(self):
expected_diameters = \
np.squeeze(self._simulation_results['ResultsSim']['D'][0][0])
self.assertTrue(
np.allclose(
expected_diameters,
1000 *
self._diameters))
def test_reference_density(self):
expected_reference_density = \
np.squeeze(
self._simulation_results['ResultsSim']['Rhoe_ref'][0][0])
self.assertTrue(np.allclose(expected_reference_density,
self._reference_density))
......@@ -95,15 +95,6 @@ class TestNonrandomConstantParticleSimulation(unittest.TestCase):
self._simulation_results = run_nonrandom_constant_simulation()
def test_time(self):
"""Test the time array calculation"""
expected_time = \
np.squeeze(self._expected_results['ResultsSim']['time'][0][0])
time = self._simulation_results.time(slice(None))
self.assertTrue(np.allclose(expected_time, time))
def test_lateral_transport(self):
"""Test the lateral transport"""
......@@ -114,23 +105,6 @@ class TestNonrandomConstantParticleSimulation(unittest.TestCase):
self.assertTrue(np.allclose(expected_y_location, y_location))
def test_longitudinal_transport(self):
"""Test the longitudinal transport"""
expected_x_location = \
np.squeeze(self._expected_results['ResultsSim']['X'][0][0])
x_location = self._simulation_results.positions()[:, 0, 0]
self.assertTrue(np.allclose(x_location, expected_x_location, rtol=0.1))
def test_vertical_transport(self):
"""Test the vertical transport"""
expected_z_location = \
np.squeeze(self._expected_results['ResultsSim']['Z'][0][0])
z_location = self._simulation_results.positions()[:, 0, 2]
self.assertTrue(np.allclose(expected_z_location, z_location))
if __name__ == '__main__':
unittest.main()
......@@ -40,8 +40,9 @@ class TestSimulationClock(unittest.TestCase):
clock = simclock.SimulationClock(2, 7)
self.assertEqual(clock.current_time(), 0)
self.assertEqual(clock.current_time_index(), 0)
self.assertEqual(clock.number_of_times(), 4)
self.assertTrue(np.array_equal(clock.time_array(), np.arange(0, 8, 2)))
self.assertEqual(clock.number_of_times(), 5)
self.assertTrue(np.array_equal(
clock.time_array(), np.arange(0, 10, 2)))
self.assertEqual(clock.time_step_size(), 2)
def test_iter_time_steps_standard(self):
......
Markdown is supported
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