Beispiel #1
0
def test_add_import_to_existing_imports(fs):
    source=full_path("processExamples/SimpleValidationMessageDialog.xml")
    fs.add_real_file(source)
    package_entry = SourceObjectParser().parse(source)
    import3='FrameworkCommon.API.PopUpQuestion.ConfirmationDialog'
    package_entry.add_import(import3)
    assert [import3,import1,import2] == package_entry.imports()
Beispiel #2
0
def test_add_first_imports(fs):
    source=full_path("processExamples/EmptyProcess.xml")
    fs.add_real_file(source)
    package_entry = SourceObjectParser().parse(source)
    package_entry.add_import(import1)
    package_entry.add_import(import2)
    assert [import2,import1] == package_entry.imports()
Beispiel #3
0
def test_add_duplicate_import_adds_nothing(fs):
    source=full_path("processExamples/EmptyProcess.xml")
    fs.add_real_file(source)
    package_entry = SourceObjectParser().parse(source)
    import3='FrameworkCommon.API.PopUpQuestion.ConfirmationDialog'
    package_entry.add_import(import3)

    package_entry.add_import(import3)

    assert [import3] == package_entry.imports()