Esempio n. 1
0
    def test_defaults(self):
        p = PropagationParams({'start_time': 'foo', 'end_time': 'bar'})
        self.assertEqual(86400, p.get_step_size())
        self.assertEqual(PropagationParams.DEFAULT_CONFIG_ID,
                         p.get_propagator_uuid())

        # No default.
        self.assertIsNone(p.get_project_uuid())
        self.assertIsNone(p.get_description())
Esempio n. 2
0
 def test_get_methods(self):
     p = PropagationParams({
         'start_time': 'foo',
         'end_time': 'bar',
         'step_size': 123,
         'project_uuid': 'aaa',
         'propagator_uuid': 'bbb',
         'description': 'abc'})
     self.assertEqual('foo', p.get_start_time())
     self.assertEqual('bar', p.get_end_time())
     self.assertEqual(123, p.get_step_size())
     self.assertEqual('aaa', p.get_project_uuid())
     self.assertEqual('bbb', p.get_propagator_uuid())
     self.assertEqual('abc', p.get_description())