Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(26)  |  Call(26)  |  Derive(0)  |  Import(0)

src/p/t/pthelma-0.7.2/tests/test_timeseries.py   pthelma(Download)
                    "spans five lines.\n\n"
                    "These five lines form two paragraphs.")
        self.reference_ts.read(StringIO(tenmin_test_timeseries))
 
    def test_write_file(self):
    def check(self, s):
        ts = Timeseries()
        instring = StringIO(s)
        outstring = StringIO()
        ts.read(instring)
        outstring = StringIO()
        ts = Timeseries()
        ts.read(instring)
        ts.write(outstring)
        self.assertEqual(outstring.getvalue(), cleanstring)
    def test_bottom_only(self):
        ts = Timeseries(0)
        ts.read(StringIO(textwrap.dedent("""\
            2005-08-23 18:53,93,
            2005-08-24 19:52,108.7,
        try:
            ts = Timeseries(0)
            ts.read(StringIO(big_test_timeseries))
            ts.write_to_db(self.db, commit=False)
            c = self.db.cursor()

src/p/t/pthelma-0.7.2/tests/test_meteologger.py   pthelma(Download)
    datafiledict = {}
    ref_ts1 = Timeseries(0)
    ref_ts1.read(open(full_testdata_filename('timeseries1.txt')))
    ref_ts2 = Timeseries(0)
    ref_ts2.read(open(full_testdata_filename('timeseries2.txt')))
            with open(os.path.join(
                    datadir, 'generated', parm['expname'] + '.txt')) as f:
                reference_ts.read(f)
                precision = self.guess_precision(f)
            self.assertTimeseriesEqual(actual_ts, reference_ts, precision,