Exemplo n.º 1
0
 def test_query(self):
     self.assertTrue(_valid_query("test=blah"))
     self.assertTrue(_valid_query(""))
     self.assertTrue(_valid_query("test"))
     self.assertTrue(_valid_query("test="))
     self.assertTrue(_valid_query("test=blah&bork=test"))
     self.assertFalse(_valid_query("test=blah&"))
Exemplo n.º 2
0
 def test_query(self):
   self.assertTrue(_valid_query("test=blah"))
   self.assertTrue(_valid_query(""))
   self.assertTrue(_valid_query("test"))
   self.assertTrue(_valid_query("test="))
   self.assertTrue(_valid_query("test=blah&bork=test"))
   self.assertFalse(_valid_query("test=blah&"))
Exemplo n.º 3
0
 def test_query_whitespace(self):
     self.assertFalse(_valid_query("test=big truck"))
     self.assertFalse(_valid_query("big truck="))
     self.assertFalse(_valid_query("test=blah&borked test=lol"))
Exemplo n.º 4
0
 def test_query_whitespace(self):
   self.assertFalse(_valid_query("test=big truck"))
   self.assertFalse(_valid_query("big truck="))
   self.assertFalse(_valid_query("test=blah&borked test=lol"))