Exemple #1
0
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
Exemple #2
0
def test_binalyzer_get_template():
    binalyzer = Binalyzer()
    binalyzer.template_provider = PlainTemplateProvider()
    binalyzer.data_provider = ZeroedDataProvider()
    assert binalyzer.template
Exemple #3
0
def test_binalyzer_set_data_provider():
    data_provider = ZeroedDataProvider()
    binalyzer = Binalyzer()
    binalyzer.data_provider = data_provider
    assert binalyzer.data_provider == data_provider