def testParameterAddition(self): """Tests that specified parameters are added appropriately.""" cmd = queries._GenerateBigQueryCommand('project', { '': { 'string': 'string_value' }, 'INT64': { 'int': 1 } }) self.assertIn('--parameter=string::string_value', cmd) self.assertIn('--parameter=int:INT64:1', cmd)
def testNoParametersSpecified(self): """Tests that no parameters are added if none are specified.""" cmd = queries._GenerateBigQueryCommand('project', {}) for element in cmd: self.assertFalse(element.startswith('--parameter'))