'Line that doesn\'t fit expected pattern raises exception.'

def test_unexpected_line(self):

    parser = CPUParser(Clock())
    exception = self.assertRaises(ValueError, parser.lineReceived, 'Unexpected    Error    Message')
    self.assertEqual(exception.args[(-1)], 'Unexpected    Error    Message')
