Exemple #1
0
def main():
    model = Annotator.load()
    ctrl = AnnotatorController()
    view = AnnotatorView()

    model.add_view(view)
    ctrl.model = model
    view.ctrl = ctrl

    view.annotator_view()
Exemple #2
0
    def testOne(self):
        view = AnnotatorView()

        msg = "AnnotatorView creation fail."
        self.assertIsInstance(view, AnnotatorView, msg)  # 1.0
        print "AnnotatorView Test Set: 1.0 Success"

        ctrl = AnnotatorController()
        view.ctrl = ctrl

        msg = "AnnotatorView controller addition fail."
        self.assertEquals(view.ctrl, ctrl)  # 1.1
        print "AnnotatorView Test Set: 1.1 Success"