def test_check_next_url_invalid_case(self): expected = None res = check_next_url('http://localhost/calendar/1') self.assertEquals(expected, res) res = check_next_url(None) self.assertEquals(expected, res)
def test_check_next_url(self): url = "http://thauber.com" self.assertTrue(check_next_url(url) is None) url = "/hello/world/" self.assertEqual(url, check_next_url(url))
def test_check_next_url_valid_case(self): expected = '/calendar/1' res = check_next_url('/calendar/1') self.assertEquals(expected, res)
def test_check_next_url_invalid_case(self): expected = None res = check_next_url('http://localhost/calendar/1') self.assertEqual(expected, res) res = check_next_url(None) self.assertEqual(expected, res)
def test_check_next_url_valid_case(self): expected = '/calendar/1' res = check_next_url('/calendar/1') self.assertEqual(expected, res)
def test_check_next_url_valid_case(self): expected = "/calendar/1" res = check_next_url("/calendar/1") self.assertEqual(expected, res)