Example #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]))
Example #2
0
 def test_check_together_empty(self):
     """Tests checking multiple parameters together when none are given."""
     self.assertFalse(rest_util.check_together([], []))
Example #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]))
Example #4
0
 def test_check_together_all(self):
     """Tests checking multiple parameters together."""
     self.assertTrue(
         rest_util.check_together(['test1', 'test2'], ['value1', 'value2']))
Example #5
0
 def test_check_together_all(self):
     '''Tests checking multiple parameters together.'''
     self.assertTrue(rest_util.check_together(['test1', 'test2'], ['value1', 'value2']))
Example #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]))
Example #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]))
Example #8
0
 def test_check_together_empty(self):
     '''Tests checking multiple parameters together when none are given.'''
     self.assertFalse(rest_util.check_together([], []))