class TestAllTheThings(unittest.TestCase): def setUp(self): self.parser = Parser() def test_invalid_key_val(self): try: self.parser.parse(["a"]) except InvalidFormat, e: assert "must be in the format KEY=VALUE" in e.args[0] return raise
def setUp(self): self.parser = Parser()