Exemplo n.º 1
0
 def test_check_together_single(self):
     """Tests checking multiple parameters together when one is given."""
     self.assertFalse(rest_util.check_together(['test1'], [None]))
Exemplo n.º 2
0
 def test_check_together_empty(self):
     """Tests checking multiple parameters together when none are given."""
     self.assertFalse(rest_util.check_together([], []))
Exemplo n.º 3
0
 def test_check_together_none(self):
     """Tests checking multiple parameters together when none are given."""
     self.assertFalse(
         rest_util.check_together(['test1', 'test2'], [None, None]))
Exemplo n.º 4
0
 def test_check_together_all(self):
     """Tests checking multiple parameters together."""
     self.assertTrue(
         rest_util.check_together(['test1', 'test2'], ['value1', 'value2']))
Exemplo n.º 5
0
 def test_check_together_all(self):
     '''Tests checking multiple parameters together.'''
     self.assertTrue(rest_util.check_together(['test1', 'test2'], ['value1', 'value2']))
Exemplo n.º 6
0
 def test_check_together_single(self):
     '''Tests checking multiple parameters together when one is given.'''
     self.assertFalse(rest_util.check_together(['test1'], [None]))
Exemplo n.º 7
0
 def test_check_together_none(self):
     '''Tests checking multiple parameters together when none are given.'''
     self.assertFalse(rest_util.check_together(['test1', 'test2'], [None, None]))
Exemplo n.º 8
0
 def test_check_together_empty(self):
     '''Tests checking multiple parameters together when none are given.'''
     self.assertFalse(rest_util.check_together([], []))