include unittest.mk
include assert.mk
include import.mk

ifdef $(call unittest,with_module_prefix)

$(call import,test/module.mk,bob)
$(call assert_equal, $(bob.variable1), v1)

endif
ifdef $(call unittest,with_module_prefix_and_spaces)

$(call import, test/module.mk , sue )
$(call assert_equal, $(sue.variable1), v1)

endif
ifdef $(call unittest,without_module_prefix)

$(call import,test/module.mk)
$(call assert_equal, $(variable1), v1)

endif

include unittest.mk
include assert.mk
include import.mk

ifdef $(call unittest,with_module_prefix)

$(call import,test/module.mk,bob)
$(call assert_equal, $(bob.variable1), v1)
$(call assert_equal, $(bob.defn.member1), 4)

endif
ifdef $(call unittest,with_module_prefix_and_spaces)

$(call import, test/module.mk , sue )
$(call assert_equal, $(sue.variable1), v1)
$(call assert_equal, $(sue.defn.member1), 4)

endif
ifdef $(call unittest,without_module_prefix)

$(call import,test/module.mk)
$(call assert_equal, $(variable1), v1)
$(call assert_equal, $(defn.member1), 4)

endif

Add checks for defined variables
Add checks for defined variables
