Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.v = variable.URIVariable('{foo}')
def test_is_list_of_tuples(self):
l = [(1, 2), (3, 4)]
self.assertEqual(variable.is_list_of_tuples(l), (True, l))
l = [1, 2, 3, 4]
self.assertEqual(variable.is_list_of_tuples(l), (False, None))