Пример #1
0
 def test_k(self):
     """Test create_empty_timeseries on a non-empty timeseries."""
     timeseries = TimeseriesStub((datetime(2011, 1, 26), 10))
     expected_timeseries = TimeseriesStub((datetime(2011, 1, 26), 0.0))
     self.assertEqual(expected_timeseries,
                      create_empty_timeseries(timeseries))
Пример #2
0
 def test_k(self):
     """Test create_empty_timeseries on a non-empty timeseries."""
     timeseries = TimeseriesStub((datetime(2011, 1, 26), 10))
     expected_timeseries = TimeseriesStub((datetime(2011, 1, 26), 0.0))
     self.assertEqual(expected_timeseries,
                      create_empty_timeseries(timeseries))
Пример #3
0
 def test_j(self):
     """Test create_empty_timeseries on an empty timeseries."""
     timeseries = TimeseriesStub()
     self.assertEqual(TimeseriesStub(), create_empty_timeseries(timeseries))
Пример #4
0
 def test_j(self):
     """Test create_empty_timeseries on an empty timeseries."""
     timeseries = TimeseriesStub()
     self.assertEqual(TimeseriesStub(), create_empty_timeseries(timeseries))