brew_journal/recipies/tests.py
def checkElement(test_instance, model, data):
        """Helper Function. Either check two values against on another or call correct helper function"""
        # IF the type is a list or dict, call the correct function to check its elements. ELSE directly
        # compare the elements
        if type(model) is list:
            Utility.checkArrayModel(test_instance, model, data)
        elif type(model) is dict:
            Utility.checkDictModel(test_instance, model, data)
        else:
            test_instance.assertEqual(model, data)
Helper Function. Either check two values against on another or call correct helper function
Helper Function. Either check two values against on another or call correct helper function
Helper Function . Either check two values against on another or call correct helper function
def checkElement(test_instance, model, data):
        if type(model) is list:
            Utility.checkArrayModel(test_instance, model, data)
        elif type(model) is dict:
            Utility.checkDictModel(test_instance, model, data)
        else:
            test_instance.assertEqual(model, data)
def checkElement ( test_instance , model , data ) : if type ( model ) is list : Utility . checkArrayModel ( test_instance , model , data ) elif type ( model ) is dict : Utility . checkDictModel ( test_instance , model , data ) else : test_instance . assertEqual ( model , data )
Helper Function.
Helper Function .
"""Helper Function. Either check two values against on another or call correct helper function""" # IF the type is a list or dict, call the correct function to check its elements. ELSE directly # compare the elements
test_instance
model
data