def test_mul_cids(self): # guessing url with multiple complex ids url2complete = "/advancedcomputersearches/name/{asdid}/asd/{asdid}/jhg" guessed_url = maybe_theres_simple_id(url2complete) should_be = "/advancedcomputersearches/name/1/asd/1/jhg" self.assertEqual(guessed_url, should_be)
def test_one_cid(self): # guessing url with complex id url2complete = "/advancedcomputersearches/name/{asdid}/" guessed_url = maybe_theres_simple_id(url2complete) should_be = "/advancedcomputersearches/name/1/" self.assertEqual(guessed_url, should_be)