'tests whether the validation function knows if there is a query'

def test_validate_contains_query(self):

    args1 = []
    symbol1 = '?'
    self.assertFalse(validate_contains_query(args1, symbol1))
    args1 = ['vm', 'create', '-g=?[].group']
    self.assertTrue(validate_contains_query(args1, symbol1))
    args1 = ['hello', 'alexander', '--groups=?[?group    ==    cj]']
    self.assertTrue(validate_contains_query(args1, symbol1))
    args1 = ['happiness', 'is', '-g', '?everything']
    self.assertTrue(validate_contains_query(args1, symbol1))
    args1 = ['happiness', 'is', '--query', '[?friends    ==    me]']
    self.assertFalse(validate_contains_query(args1, symbol1))
    args1 = ['?hello']
    self.assertTrue(validate_contains_query(args1, symbol1))
