def test_error_string_unrecognized(self): self.assertEqual("unrecognized error", err.error_string(1000))
def test_error_string_failure(self): self.assertEqual("generic failure", err.error_string(-1))
def test_error_string_success(self): self.assertEqual("success", err.error_string(0))