예제 #1
0
 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))
예제 #3
0
 def test_check_next_url_valid_case(self):
     expected = '/calendar/1'
     res = check_next_url('/calendar/1')
     self.assertEquals(expected, res)
예제 #4
0
 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))
예제 #5
0
 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)
예제 #6
0
 def test_check_next_url_valid_case(self):
     expected = '/calendar/1'
     res = check_next_url('/calendar/1')
     self.assertEqual(expected, res)
예제 #7
0
 def test_check_next_url_valid_case(self):
     expected = "/calendar/1"
     res = check_next_url("/calendar/1")
     self.assertEqual(expected, res)