#!/usr/bin/python
################################################################################
# "THE BEER-WARE LICENSE" (Revision 42):
# <thenoviceoof> wrote this file. As long as you retain this notice
# you can do whatever you want with this stuff. If we meet some day,
# and you think this stuff is worth it, you can buy me a beer in
# return
# Nathan Hwang <thenoviceoof>
# ----------------------------------------------------------------------------
################################################################################

from unittest import TestCase

################################################################################
# Nosetest parser

from booger import NOSE_DIV_WIDTH, NosetestsParser

class NosetestsParserTest(TestCase):
    def setUp(self):
        self.parser = NosetestsParser()
    def short_output_test(self):
        inp = '=' * 70
        out, end = self.parser.parse_short_output(inp)
        assert end == True

@@ -378,87 +378,8 @@
 of%3E%0A
-# ----------------------------------------------------------------------------%0A
 ####
@@ -737,16 +737,17 @@
 arser()%0A
+%0A
     def 
@@ -759,16 +759,20 @@
 _output_
+end_
 test(sel
@@ -767,32 +767,115 @@
 end_test(self):%0A
+        '''%0A        Make sure we recognise the end of the short output%0A        '''%0A
         inp = '=
@@ -962,9 +962,657 @@
  == 
-True
+False%0A    def short_output_ok_test(self):%0A        '''%0A        Recognize %60msg ... ok%60 messages%0A        '''%0A        msg = 'msg ... ok'%0A        out, end = self.parser.parse_short_output(msg)%0A        assert out == 'ok'%0A    def short_output_fail_test(self):%0A        '''%0A        Recognize %60msg ... FAIL%60 messages%0A        '''%0A        msg = 'msg ... FAIL'%0A        out, end = self.parser.parse_short_output(msg)%0A        assert out == 'fail'%0A    def short_output_error_test(self):%0A        '''%0A        Recognize %60msg ... ERROR%60 messages%0A        '''%0A        msg = 'msg ... ERROR'%0A        out, end = self.parser.parse_short_output(msg)%0A        assert out == 'error'
 %0A

Write some more tests for the short nosetests parser