Ejemplo n.º 1
0
    def test_form_widgets(self):
        from seantisinvoice.views.customer import CustomerController

        request = testing.DummyRequest()
        view = CustomerController(None, request)
        widgets = view.form_widgets(view.form_fields())
        self.failIf(widgets["contact_list"].sortable)
Ejemplo n.º 2
0
 def test_form_fields(self):
     from seantisinvoice.views.customer import CustomerController
     from seantisinvoice.views.customer import CustomerSchema
     request = testing.DummyRequest()
     view = CustomerController(None, request)
     fields = view.form_fields()
     self.assertEquals(CustomerSchema.attrs, fields)
Ejemplo n.º 3
0
    def test_form_fields(self):
        from seantisinvoice.views.customer import CustomerController
        from seantisinvoice.views.customer import CustomerSchema

        request = testing.DummyRequest()
        view = CustomerController(None, request)
        fields = view.form_fields()
        self.assertEquals(CustomerSchema.attrs, fields)
Ejemplo n.º 4
0
 def test_form_widgets(self):
     from seantisinvoice.views.customer import CustomerController
     request = testing.DummyRequest()
     view = CustomerController(None, request)
     widgets = view.form_widgets(view.form_fields())
     self.failIf(widgets['contact_list'].sortable)