Esempio n. 1
0
def test_brand():
    """ Wrapper.  Alias of tests.test_name_check. """
    if test.test_name_check(input_brand, name, website, product_ids_temp, pid) == False:
        return False
    if literal_product == True:
        if test.test_product_name(input, name) == False:
            return False
    return True
Esempio n. 2
0
def filter_wrappers(driver, wrappers, engine, filter=None):
    e = engine.e
    if filter != None:
        for wrapper in wrappers:
            product_name = e.get_review_wrapper_name(wrapper) #IMPLEMENT
            if test.test_product_name(product_search, product_name) == False:
                wrappers.remove(wrapper)