def METHOD_NAME(self):
    parsed = parse_query("key")
    self.assertEqual(("key", 0), parsed)
    parsed = parse_query("key|")
    self.assertEqual(("key", 0), parsed)
    parsed = parse_query("key|1|")
    self.assertEqual(("key", 0), parsed)