Exemplo n.º 1
0
 def test_media_url_no_slash(self):
     self.assertEqual(check_url_settings(None), [E006('MEDIA_URL')])
Exemplo n.º 2
0
 def test_static_url_no_slash(self):
     self.assertEqual(check_url_settings(None), [E006('STATIC_URL')])
Exemplo n.º 3
0
 def test_static_url_double_slash_allowed(self):
     # The check allows for a double slash, presuming the user knows what
     # they are doing.
     self.assertEqual(check_url_settings(None), [])
Exemplo n.º 4
0
 def test_slash_no_errors(self):
     self.assertEqual(check_url_settings(None), [])
Exemplo n.º 5
0
 def test_empty_string_no_errors(self):
     self.assertEqual(check_url_settings(None), [])
Exemplo n.º 6
0
 def test_media_url_no_slash(self):
     self.assertEqual(check_url_settings(None), [E006('MEDIA_URL')])
Exemplo n.º 7
0
 def test_static_url_double_slash_allowed(self):
     # The check allows for a double slash, presuming the user knows what
     # they are doing.
     self.assertEqual(check_url_settings(None), [])
Exemplo n.º 8
0
 def test_static_url_no_slash(self):
     self.assertEqual(check_url_settings(None), [E006('STATIC_URL')])
Exemplo n.º 9
0
 def test_empty_string_no_errors(self):
     self.assertEqual(check_url_settings(None), [])
Exemplo n.º 10
0
 def test_slash_no_errors(self):
     self.assertEqual(check_url_settings(None), [])