def test_nonintegerCode(self): m = error._codeToMessage(b"InvalidCode") self.assertEqual(m, None)
def test_invalidCode(self): m = error._codeToMessage(b"987") self.assertEqual(m, None)
def test_validCode(self): m = error._codeToMessage(b"302") self.assertEqual(m, b"Found")