def test_binalyzer_set_data(): data_mock1 = object() data_mock2 = object() data_provider = DataProvider(data_mock1) binalyzer = Binalyzer() binalyzer.data_provider = data_provider binalyzer.data = data_mock2 assert binalyzer.data == data_mock2 assert binalyzer.data != data_mock1
def test_binalyzer_get_template(): binalyzer = Binalyzer() binalyzer.template_provider = PlainTemplateProvider() binalyzer.data_provider = ZeroedDataProvider() assert binalyzer.template
def test_binalyzer_set_data_provider(): data_provider = ZeroedDataProvider() binalyzer = Binalyzer() binalyzer.data_provider = data_provider assert binalyzer.data_provider == data_provider