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

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

src/s/p/Spacelog-HEAD/mcshred/src/MCShredTest.py   Spacelog(Download)
    def test_log_line(self):
        logLine = MCShred.LogLine(5, u"5/1", u"00 01 03 59 CC This is the rest of the line")
 
        assert logLine.page == 5
        assert logLine.tape == u"5/1"
        assert logLine.raw == u"00 01 03 59 CC This is the rest of the line"
 
    def test_get_seconds_from_mission_start(self):
        logLine = MCShred.LogLine(5, u"5/1", u"01 02 03 59 CC This is the rest of the line")
    def test_get_seconds_from_mission_start_will_work_with_full_colon_seperated_timestamps(self):
        logLine = MCShred.LogLine(5, u"5/1", u"01:02:03:59 CC This is the rest of the line")
        expectedTime = (59 + (3 * 60) + (2 * 60 * 60) + (1 * 24 * 60 * 60))
 
 
    def test_set_timestamp_speaker_and_text(self):
        logLine = MCShred.LogLine(5, u"5/1", u"01 02 03 59 CC This is the rest of the line")
 
        MCShred.set_timestamp_speaker_and_text(logLine)
 
    def test_line_is_a_new_entry(self):
        logLine1 = MCShred.LogLine(5, u"5/1", u"01 02 03 59 CC This is the rest of the line")
        logLine2 = MCShred.LogLine(5, u"5/1", u"except for this thing because it's actually")
        logLine3 = MCShred.LogLine(5, u"5/1", u"a three line comment")