def METHOD_NAME(self):
    sse = tryclient.GitExtractor(None, None, None)
    for patchlevel, diff in enumerate((None, "", b"")):
        sse.readPatch(diff, patchlevel)
        self.assertEqual(sse.patch, (patchlevel, None))
    sse.readPatch(b"diff schmiff blah blah blah", 23)
    self.assertEqual(sse.patch, (23, b"diff schmiff blah blah blah"))