class TestCase:

    def assertEqual(value, expected):
        if value != expected:
            raise CaseFailed("{0} != {1}")

    def assertTrue(value):
        assertEqual(value, True)

    def assertFalse(value):
        assertEqual(value, False)

class CaseFailed(Exception):

    def __init__(self, message):
        self.message = message

    def __str__(self):
        return message

@@ -26,24 +26,30 @@
 assertEqual(
+self, 
 value, expec
@@ -125,16 +125,40 @@
  != %7B1%7D%22
+.format(value, expected)
 )%0A%0A    d
@@ -171,16 +171,22 @@
 ertTrue(
+self, 
 value):%0A
@@ -239,16 +239,22 @@
 rtFalse(
+self, 
 value):%0A
@@ -421,16 +421,21 @@
  return 
+self.
 message%0A

Fix missing self in class methods and wrong formatting